Things in Darcs that are or that resemble hashes:

  1. Patch hash - patch name, author name, timestamp, log

    • Used as a unique identifier for patches (because patch internals change during commutation)
    • You can see this in the darcs changes –xml output (it may end in a ’.gz’ but that’s meaningless)
    • This never changes, even if you commute the patch
  2. File contents hash (sha256) - used for identifying/verifying hashed patch/pristine/inventory files

    • See HashedPristine for details
    • Note that this changes depending on what the context of the patch is
  3. Patch bundle hash - used to verify that patch bundle was not corrupted (eg. by a mail client)

    • Darcs doesn’t mind if you remove this.
    • You probably should NOT remove it, but there are rare occasions where you might do so for Forensics or some sort of manual rebase operation. Get in touch with other darcs users first to make sure this is good idea.
  4. Patch salt - not actually a hash. This is just the hexadecimal representation of some random number from 0 to 2^128. It’s random noise inserted into the log to help patch hashes stay unique.

See also