--- 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: