Patchwork D2208: ui: use pycompat.bytestr() to get a bytes-repr of config default

login
register
mail settings
Submitter phabricator
Date Feb. 13, 2018, 3:48 a.m.
Message ID <80c2ba915b9b6c7454920c393022d840@localhost.localdomain>
Download mbox | patch
Permalink /patch/27788/
State Not Applicable
Headers show

Comments

phabricator - Feb. 13, 2018, 3:48 a.m.
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




To: durin42, #hg-reviewers, indygreg
Cc: mercurial-devel

Patch

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: