##// END OF EJS Templates
shortest: never emit 0-length prefix even if unique...
Martin von Zweigbergk -
r40439:bf249bb6 default
parent child Browse files
Show More
@@ -495,6 +495,8 b' def shortesthexnodeidprefix(repo, node, '
495 # which would be unacceptably slow. so we look for hash collision in
495 # which would be unacceptably slow. so we look for hash collision in
496 # unfiltered space, which means some hashes may be slightly longer.
496 # unfiltered space, which means some hashes may be slightly longer.
497
497
498 minlength=max(minlength, 1)
499
498 def disambiguate(prefix):
500 def disambiguate(prefix):
499 """Disambiguate against revnums."""
501 """Disambiguate against revnums."""
500 if repo.ui.configbool('experimental', 'revisions.prefixhexnode'):
502 if repo.ui.configbool('experimental', 'revisions.prefixhexnode'):
General Comments 0
You need to be logged in to leave comments. Login now