##// END OF EJS Templates
shortest: avoid magic number "41"...
Martin von Zweigbergk -
r38000:5ac72e07 default
parent child Browse files
Show More
@@ -466,7 +466,7 b' def shortesthexnodeidprefix(repo, node, '
466 def disambiguate(prefix):
466 def disambiguate(prefix):
467 """Disambiguate against revnums."""
467 """Disambiguate against revnums."""
468 hexnode = hex(node)
468 hexnode = hex(node)
469 for length in range(len(prefix), 41):
469 for length in range(len(prefix), len(hexnode) + 1):
470 prefix = hexnode[:length]
470 prefix = hexnode[:length]
471 if not isrev(prefix):
471 if not isrev(prefix):
472 return prefix
472 return prefix
General Comments 0
You need to be logged in to leave comments. Login now