changeset 31636:f3b151278655

revsetlang: fix _quote on int on python3 Thanks to Yuya for spotting the need.
author Augie Fackler <raf@durin42.com>
date Sun, 26 Mar 2017 16:48:29 -0400
parents 632e07e72a22
children c4dd1e7c1dab
files mercurial/revsetlang.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/revsetlang.py	Sun Mar 26 20:58:54 2017 -0700
+++ b/mercurial/revsetlang.py	Sun Mar 26 16:48:29 2017 -0400
@@ -586,7 +586,7 @@
     >>> _quote(1)
     "'1'"
     """
-    return "'%s'" % util.escapestr('%s' % s)
+    return "'%s'" % util.escapestr(pycompat.bytestr(s))
 
 def formatspec(expr, *args):
     '''