D7194: py3: fix crecord.py's editpatchwitheditor exception message encoding
touilleMan (Leblond Emmanuel)
phabricator at mercurial-scm.org
Fri Nov 1 16:47:25 UTC 2019
touilleMan 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/D7194
AFFECTED FILES
mercurial/crecord.py
CHANGE DETAILS
diff --git a/mercurial/crecord.py b/mercurial/crecord.py
--- a/mercurial/crecord.py
+++ b/mercurial/crecord.py
@@ -1816,7 +1816,7 @@
try:
patch = self.ui.edit(patch.getvalue(), b"", action=b"diff")
except error.Abort as exc:
- self.errorstr = str(exc)
+ self.errorstr = stringutil.forcebytestr(exc)
return None
finally:
self.stdscr.clear()
To: touilleMan, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list