D2264: py3: use pycompat.bytestr instead of str
pulkit (Pulkit Goyal)
phabricator at mercurial-scm.org
Wed Feb 14 08:43:25 EST 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGc1628a5eac87: py3: use pycompat.bytestr instead of str (authored by pulkit, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D2264?vs=5704&id=5718
REVISION DETAIL
https://phab.mercurial-scm.org/D2264
AFFECTED FILES
mercurial/commands.py
CHANGE DETAILS
diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -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'}
To: pulkit, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list