D4811: py3: use util.forcebytestr() to convert error messages to bytes
This revision was automatically updated to reflect the committed changes. Closed by commit rHG7eb937f598d1: py3: use util.forcebytestr() to convert error messages to bytes (authored by pulkit, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D4811?vs=11495=11498 REVISION DETAIL https://phab.mercurial-scm.org/D4811 AFFECTED FILES mercurial/revlog.py CHANGE DETAILS diff --git a/mercurial/revlog.py b/mercurial/revlog.py --- a/mercurial/revlog.py +++ b/mercurial/revlog.py @@ -2669,7 +2669,8 @@ state['skipread'].add(node) except Exception as e: yield revlogproblem( -error=_('unpacking %s: %s') % (short(node), e), +error=_('unpacking %s: %s') % (short(node), + stringutil.forcebytestr(e)), node=node) state['skipread'].add(node) To: pulkit, indygreg, #hg-reviewers Cc: mercurial-devel ___ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel
D4811: py3: use util.forcebytestr() to convert error messages to bytes
pulkit created this revision. Herald added a reviewer: indygreg. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY This makes the python 3 buildbot green again. REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D4811 AFFECTED FILES mercurial/revlog.py CHANGE DETAILS diff --git a/mercurial/revlog.py b/mercurial/revlog.py --- a/mercurial/revlog.py +++ b/mercurial/revlog.py @@ -2669,7 +2669,8 @@ state['skipread'].add(node) except Exception as e: yield revlogproblem( -error=_('unpacking %s: %s') % (short(node), e), +error=_('unpacking %s: %s') % (short(node), + stringutil.forcebytestr(e)), node=node) state['skipread'].add(node) To: pulkit, indygreg, #hg-reviewers Cc: mercurial-devel ___ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel