D7194: py3: fix crecord.py's editpatchwitheditor exception message encoding
touilleMan (Leblond Emmanuel)
phabricator at mercurial-scm.org
Fri Nov 1 13:28:59 EDT 2019
Closed by commit rHGd5437bf42e37: py3: fix crecord.py's editpatchwitheditor exception message encoding (authored by touilleMan).
This revision was automatically updated to reflect the committed changes.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D7194?vs=17448&id=17453
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D7194/new/
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, indygreg
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list