mercurial/cmdutil.py
changeset 32155 055cca8e167b
parent 32153 6f173560c7f4
child 32174 e4a4ebfd9d8e
--- a/mercurial/cmdutil.py	Fri May 05 01:26:49 2017 +0530
+++ b/mercurial/cmdutil.py	Fri May 05 01:41:54 2017 +0530
@@ -1361,7 +1361,7 @@
         if rev is None:
             jrev = jnode = 'null'
         else:
-            jrev = str(rev)
+            jrev = '%d' % rev
             jnode = '"%s"' % hex(ctx.node())
         j = encoding.jsonescape
 
@@ -1608,7 +1608,7 @@
         if rev in results:
             ui.status(_("found revision %s from %s\n") %
                       (rev, util.datestr(results[rev])))
-            return str(rev)
+            return '%d' % rev
 
     raise error.Abort(_("revision matching date not found"))