Getting long hashes

Andrei Gaponenko agaponenko at lbl.gov
Thu Oct 4 16:27:51 CDT 2007


Hi,

How do I get the full, 40-character long, revision id, for a revision?
I hoped to get it from "hg id" with some options, but found nothing
appropriate.  Is this supported?  Perhaps an option for the "hg id"
command, or even a global hg option --longhash, can be added to
Mercurial for those who want to use the long version?

In my case, I want a program binary to know what version of the source
code was used, and print that to a log file when the computational job
is run.  For long term archival I'd rather use the full revision id
than an abbreviated version.

Regards,
Andrei

PS.  By the way, I was going to put this "wish" on the issue tracker,
but while registering got:

Error: couldn't send email: (451, '4.3.2 Please try again later')

and trying some time later did not help.


More information about the Mercurial mailing list