Patchwork D7194: py3: fix crecord.py's editpatchwitheditor exception message encoding

login
register
mail settings
Submitter phabricator
Date Nov. 1, 2019, 5:28 p.m.
Message ID <9003e35f9a8dc4fd6d0364fb381e26a7@localhost.localdomain>
Download mbox | patch
Permalink /patch/42666/
State Not Applicable
Headers show

Comments

phabricator - Nov. 1, 2019, 5:28 p.m.
Closed by commit rHGd5437bf42e37: py3: fix crecord.py&#039;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




To: touilleMan, #hg-reviewers, indygreg
Cc: mercurial-devel

Patch

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()