equal
deleted
inserted
replaced
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: |