Show More
@@ -475,7 +475,7 b' def mayberevnum(repo, prefix):' | |||
|
475 | 475 | # if we are a pure int, then starting with zero will not be |
|
476 | 476 | # confused as a rev; or, obviously, if the int is larger |
|
477 | 477 | # than the value of the tip rev |
|
478 | if prefix[0:1] == b'0' or i > len(repo): | |
|
478 | if prefix[0:1] == b'0' or i >= len(repo): | |
|
479 | 479 | return False |
|
480 | 480 | return True |
|
481 | 481 | except ValueError: |
General Comments 0
You need to be logged in to leave comments.
Login now