# HG changeset patch # User Augie Fackler # Date 2017-03-26 20:48:29 # Node ID f3b151278655222f75d5b192fc3b928061e4551a # Parent 632e07e72a22428b6571866da3fd7e0778e80c05 revsetlang: fix _quote on int on python3 Thanks to Yuya for spotting the need. diff --git a/mercurial/revsetlang.py b/mercurial/revsetlang.py --- a/mercurial/revsetlang.py +++ b/mercurial/revsetlang.py @@ -586,7 +586,7 @@ def _quote(s): >>> _quote(1) "'1'" """ - return "'%s'" % util.escapestr('%s' % s) + return "'%s'" % util.escapestr(pycompat.bytestr(s)) def formatspec(expr, *args): '''