D3284: py3: use stringutil.forcebytestr() to convert error messages to bytes
pulkit (Pulkit Goyal)
phabricator at mercurial-scm.org
Thu Apr 12 12:07:53 UTC 2018
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/D3284
AFFECTED FILES
mercurial/subrepoutil.py
CHANGE DETAILS
diff --git a/mercurial/subrepoutil.py b/mercurial/subrepoutil.py
--- a/mercurial/subrepoutil.py
+++ b/mercurial/subrepoutil.py
@@ -86,7 +86,8 @@
src = re.sub(pattern, repl, src, 1)
except re.error as e:
raise error.Abort(_("bad subrepository pattern in %s: %s")
- % (p.source('subpaths', pattern), e))
+ % (p.source('subpaths', pattern),
+ stringutil.forcebytestr(e)))
return src
state = {}
To: pulkit, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list