Uniqueness of Rev. Hex Id.s
Bob Hood
bhood2 at comcast.net
Wed Jan 22 17:48:38 UTC 2014
On 1/22/2014 10:06 AM, Pietro Moras wrote:
>
> I read that in a Revision identifier, such as: "3:1ff43bfdd8a2", the integer
> No. is Working Directory unique, whereas the hexadecimal Identifier is
> global unique, that is unique for all cloned copies. Fine.
>
> Any idea what is the mathematical algorithm used to generate such global
> unique codes within distinct clones of a versioned Project? Thanks.
>
As an aside (which doesn't address your specific question), that hex value is
only the first 12 digits of the real identifier, which can be displayed with,
e.g.:
[default] $ hg id --debug
69cda0b2d37851abbe81425dccadd3dfe80250a0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20140122/a3904c3e/attachment-0002.html>
More information about the Mercurial
mailing list