D2208: ui: use pycompat.bytestr() to get a bytes-repr of config default
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Mon Feb 12 22:48:12 EST 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG8f5c7f906f9b: ui: use pycompat.bytestr() to get a bytes-repr of config default (authored by durin42, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D2208?vs=5600&id=5607
REVISION DETAIL
https://phab.mercurial-scm.org/D2208
AFFECTED FILES
mercurial/ui.py
CHANGE DETAILS
diff --git a/mercurial/ui.py b/mercurial/ui.py
--- a/mercurial/ui.py
+++ b/mercurial/ui.py
@@ -498,7 +498,7 @@
and default != itemdefault):
msg = ("specifying a mismatched default value for a registered "
"config item: '%s.%s' '%s'")
- msg %= (section, name, default)
+ msg %= (section, name, pycompat.bytestr(default))
self.develwarn(msg, 2, 'warn-config-default')
for s, n in alternates:
To: durin42, #hg-reviewers, indygreg
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list