##// END OF EJS Templates
scmutil: fix shortesthexnodeidprefix on Python 3 for 0-prefixed nodes...
Augie Fackler -
r38681:cc76692f @77 default
parent child Browse files
Show More
@@ -458,7 +458,7 b' def shortesthexnodeidprefix(repo, node, '
458 # if we are a pure int, then starting with zero will not be
458 # if we are a pure int, then starting with zero will not be
459 # confused as a rev; or, obviously, if the int is larger
459 # confused as a rev; or, obviously, if the int is larger
460 # than the value of the tip rev
460 # than the value of the tip rev
461 if prefix[0] == '0' or i > len(cl):
461 if prefix[0:1] == b'0' or i > len(cl):
462 return False
462 return False
463 return True
463 return True
464 except ValueError:
464 except ValueError:
General Comments 0
You need to be logged in to leave comments. Login now