py3: use pycompat.bytestr instead of str
Differential Revision: https://phab.mercurial-scm.org/D2264
--- 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'}