D7195: py3: fix exception message encoding in infinitepush
touilleMan (Leblond Emmanuel)
phabricator at mercurial-scm.org
Fri Nov 1 17:28:47 UTC 2019
Closed by commit rHGf8e10e3e001f: py3: fix exception message encoding in infinitepush (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/D7195?vs=17449&id=17452
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D7195/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D7195
AFFECTED FILES
hgext/infinitepush/__init__.py
CHANGE DETAILS
diff --git a/hgext/infinitepush/__init__.py b/hgext/infinitepush/__init__.py
--- a/hgext/infinitepush/__init__.py
+++ b/hgext/infinitepush/__init__.py
@@ -959,7 +959,7 @@
service,
eventtype=b'failure',
elapsedms=(time.time() - start) * 1000,
- errormsg=str(e),
+ errormsg=stringutil.forcebytestr(e),
**kwargs
)
raise
@@ -1223,7 +1223,7 @@
scratchbranchparttype,
eventtype=b'failure',
elapsedms=(time.time() - parthandlerstart) * 1000,
- errormsg=str(e),
+ errormsg=stringutil.forcebytestr(e),
)
raise
finally:
To: touilleMan, #hg-reviewers, indygreg
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list