Is it safe to kill the Mercurial (hg) process?

  • What damage can be caused by killing a Mercurial process? Can the working directory remain in undefined state? Could the .hg / -admin area be corrupted in some way?

  • Are files written in some kind of "atomic" Mercurial operation? (Working tree files, .hg / -internal files, configuration files, etc.)

+3
source share
1 answer

It is safe. All recordings are performed so that the files on the disk are always consistent . Either the transaction is fully written out, or automatically rolled back at the next discovery. Not just agreed upon closing, but always agreed - whether it stops via SIGKILL or a power failure.

, : https://www.mercurial-scm.org/wiki/FileFormats. , . - , , , , , .

- dropbox ( , ), , hg , .

+5

All Articles