D7195: py3: fix exception message encoding in infinitepush

2019-11-01 Thread touilleMan (Leblond Emmanuel)
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=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
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


D7195: py3: fix exception message encoding in infinitepush

2019-11-01 Thread touilleMan (Leblond Emmanuel)
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/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
Cc: mercurial-devel
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel