mercurial/scmutil.py
changeset 39360 570fca90d556
parent 39301 5763216ba311
child 39480 89630d0b3e23
--- a/mercurial/scmutil.py	Wed Aug 29 22:53:44 2018 -0400
+++ b/mercurial/scmutil.py	Wed Aug 29 15:49:11 2018 -0700
@@ -475,7 +475,7 @@
         # if we are a pure int, then starting with zero will not be
         # confused as a rev; or, obviously, if the int is larger
         # than the value of the tip rev
-        if prefix[0:1] == b'0' or i > len(repo):
+        if prefix[0:1] == b'0' or i >= len(repo):
             return False
         return True
     except ValueError: