py3: use pycompat.bytestr instead of str
authorPulkit Goyal <7895pulkit@gmail.com>
Wed, 14 Feb 2018 17:06:20 +0530
changeset 36186 c1628a5eac87
parent 36185 acc8e6e52af6
child 36187 a9d1ac7b91a8
py3: use pycompat.bytestr instead of str Differential Revision: https://phab.mercurial-scm.org/D2264
mercurial/commands.py
--- a/mercurial/commands.py	Wed Feb 14 17:05:33 2018 +0530
+++ b/mercurial/commands.py	Wed Feb 14 17:06:20 2018 +0530
@@ -337,8 +337,8 @@
              ('number', ' ', lambda x: x.fctx.rev(), formatrev),
              ('changeset', ' ', lambda x: hexfn(x.fctx.node()), formathex),
              ('date', ' ', lambda x: x.fctx.date(), util.cachefunc(datefunc)),
-             ('file', ' ', lambda x: x.fctx.path(), str),
-             ('line_number', ':', lambda x: x.lineno, str),
+             ('file', ' ', lambda x: x.fctx.path(), pycompat.bytestr),
+             ('line_number', ':', lambda x: x.lineno, pycompat.bytestr),
             ]
     fieldnamemap = {'number': 'rev', 'changeset': 'node'}