D5739: py3: use pycompat.bytestr() so that slicing does not result in ascii values
pulkit (Pulkit Goyal)
phabricator at mercurial-scm.org
Tue Jan 29 22:27:37 UTC 2019
pulkit created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D5739
AFFECTED FILES
hgext/convert/monotone.py
CHANGE DETAILS
diff --git a/hgext/convert/monotone.py b/hgext/convert/monotone.py
--- a/hgext/convert/monotone.py
+++ b/hgext/convert/monotone.py
@@ -102,7 +102,7 @@
command.append('l')
for arg in args:
- command += "%d:%s" % (len(arg), arg)
+ command += pycompat.bytestr("%d:%s" % (len(arg), arg))
command.append('e')
command = ''.join(command)
To: pulkit, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list