mercurial/context.py
changeset 31351 5da0c7888dc4
parent 31344 c99371e38e5e
child 31388 9e57033fec0c
--- a/mercurial/context.py	Sun Mar 12 01:59:23 2017 -0500
+++ b/mercurial/context.py	Sun Mar 12 00:43:47 2017 -0500
@@ -454,7 +454,7 @@
 
             try:
                 r = int(changeid)
-                if str(r) != changeid:
+                if '%d' % r != changeid:
                     raise ValueError
                 l = len(repo.changelog)
                 if r < 0: