Getting long hashes

Andrei Gaponenko agaponenko at lbl.gov
Fri Oct 5 00:14:30 CDT 2007


On Thu, 4 Oct 2007, Brendan Cully wrote:

> On Thursday, 04 October 2007 at 14:27, Andrei Gaponenko wrote:
> > 
> > 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?
> 
> hg id -i --debug
> 

Hmm..  That works, but --debug is a switch that I am leery to use for 
production.  The name suggests that in a future version it may mean more 
than just printing out unabbreviated hash.

Regards,
Andrei


More information about the Mercurial mailing list