D5031: py3: use stringutil.pprint() if we are printing bool values
pulkit (Pulkit Goyal)
phabricator at mercurial-scm.org
Sat Oct 13 05:05:12 UTC 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGc7ffc53fbd19: py3: use stringutil.pprint() if we are printing bool values (authored by pulkit, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D5031?vs=11965&id=11986
REVISION DETAIL
https://phab.mercurial-scm.org/D5031
AFFECTED FILES
hgext/keyword.py
CHANGE DETAILS
diff --git a/hgext/keyword.py b/hgext/keyword.py
--- a/hgext/keyword.py
+++ b/hgext/keyword.py
@@ -430,6 +430,8 @@
def demoitems(section, items):
ui.write('[%s]\n' % section)
for k, v in sorted(items):
+ if isinstance(v, bool):
+ v = stringutil.pprint(v)
ui.write('%s = %s\n' % (k, v))
fn = 'demo.txt'
To: pulkit, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list