[Commented On] D10993: dirstatenonnormalcheck: fix some bytes formating on python3
baymax (Baymax, Your Personal Patch-care Companion)
phabricator at mercurial-scm.org
Tue Jul 6 17:35:50 UTC 2021
baymax added a comment.
baymax updated this revision to Diff 28848.
✅ refresh by Heptapod after a successful CI run (🐙 💚)
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D10993?vs=28814&id=28848
BRANCH
default
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D10993/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D10993
AFFECTED FILES
contrib/dirstatenonnormalcheck.py
CHANGE DETAILS
diff --git a/contrib/dirstatenonnormalcheck.py b/contrib/dirstatenonnormalcheck.py
--- a/contrib/dirstatenonnormalcheck.py
+++ b/contrib/dirstatenonnormalcheck.py
@@ -11,6 +11,7 @@
from mercurial import (
dirstate,
extensions,
+ pycompat,
)
@@ -27,10 +28,13 @@
"""Compute nonnormalset from dmap, check that it matches _nonnormalset"""
nonnormalcomputedmap = nonnormalentries(dmap)
if _nonnormalset != nonnormalcomputedmap:
- ui.develwarn(b"%s call to %s\n" % (label, orig), config=b'dirstate')
+ b_orig = pycompat.sysbytes(repr(orig))
+ ui.develwarn(b"%s call to %s\n" % (label, b_orig), config=b'dirstate')
ui.develwarn(b"inconsistency in nonnormalset\n", config=b'dirstate')
- ui.develwarn(b"[nonnormalset] %s\n" % _nonnormalset, config=b'dirstate')
- ui.develwarn(b"[map] %s\n" % nonnormalcomputedmap, config=b'dirstate')
+ b_nonnormal = pycompat.sysbytes(repr(_nonnormalset))
+ ui.develwarn(b"[nonnormalset] %s\n" % b_nonnormal, config=b'dirstate')
+ b_nonnormalcomputed = pycompat.sysbytes(repr(nonnormalcomputedmap))
+ ui.develwarn(b"[map] %s\n" % b_nonnormalcomputed, config=b'dirstate')
def _checkdirstate(orig, self, arg):
To: marmoute, #hg-reviewers, Alphare
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20210706/8304f0c7/attachment-0002.html>
More information about the Mercurial-patches
mailing list