Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7891765
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T06:42:03+00:00 2026-06-03T06:42:03+00:00

Which damage could be caused when killing a Mercurial process? Might the working directory

  • 0
  • Which damage could be caused when killing a Mercurial process? Might the working directory be left in an undefined state? Might the .hg/-admin area get corrupted in some way?

  • Are files written in some kind of “atomic” operation by Mercurial? (Working tree files, .hg/-internal files, configurations files, and so on …)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T06:42:05+00:00Added an answer on June 3, 2026 at 6:42 am

    It is safe. All writes are done such that the files on disk are always consistent. Either the transaction writes out entirely or it automatically rolls back when next found. Not just consistent when closed, but always consistent — whether it stops via SIGKILL or power failure.

    You can sort of work out how that’s accomplished here: https://www.mercurial-scm.org/wiki/FileFormats . This is possible in part because all file writes are append only. Before anything is written file lengths are noted, and if things are found to be in an inconsistent state they automatically truncate the files back to the checkpointed, known good lengths.

    Using something like dropbox (which syncs files in whatever order it likes) can throw this out the window, which is why it’s best to let hg be the only process writing to repositories.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Which one to use for process monitoring and why?
A friend sent me that code and alleges that it could damage the processor.
I have just read this question: Could this code damage my processor? and this
I am working on a program which is essentially single-threaded, and its only thread
I'm curious what damage someone could do with just access to the System.dll namespace
I have a variable which contains the following string placeholder = <strong>Total Damage:</strong> $70,000.00
AFAIK staging deployments are intended for testing Azure roles which implies that I could
I have a state-transition problem with NSTimer, of which I find difficult to keep
I am working on a site called earthquake damage map . It is almost
Which method is preferred for adding a row to a table? var tr =

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.