mercurial/scmutil.py
changeset 38855 7848f284b211
parent 38854 531b86cc8fb3
child 38856 a01200b25da6
equal deleted inserted replaced
38854:531b86cc8fb3 38855:7848f284b211
   435     else:
   435     else:
   436         hexfunc = short
   436         hexfunc = short
   437     return '%d:%s' % (rev, hexfunc(node))
   437     return '%d:%s' % (rev, hexfunc(node))
   438 
   438 
   439 def resolvehexnodeidprefix(repo, prefix):
   439 def resolvehexnodeidprefix(repo, prefix):
       
   440     if (prefix.startswith('x') and
       
   441         repo.ui.configbool('experimental', 'revisions.prefixhexnode')):
       
   442         prefix = prefix[1:]
   440     try:
   443     try:
   441         # Uses unfiltered repo because it's faster when prefix is ambiguous/
   444         # Uses unfiltered repo because it's faster when prefix is ambiguous/
   442         # This matches the shortesthexnodeidprefix() function below.
   445         # This matches the shortesthexnodeidprefix() function below.
   443         node = repo.unfiltered().changelog._partialmatch(prefix)
   446         node = repo.unfiltered().changelog._partialmatch(prefix)
   444     except error.AmbiguousPrefixLookupError:
   447     except error.AmbiguousPrefixLookupError: