Submitter | phabricator |
---|---|
Date | April 16, 2021, 12:56 a.m. |
Message ID | <differential-rev-PHID-DREV-ofukgvscqs2xwe5ctf7h-req@mercurial-scm.org> |
Download | mbox | patch |
Permalink | /patch/48766/ |
State | Superseded |
Headers | show |
Comments
Patch
diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -5151,6 +5151,11 @@ assert subopt not in (b'name', b'url') if showsubopts: fm.plain(b'%s:%s = ' % (name, subopt)) + if isinstance(value, bool): + if value: + value = b'yes' + else: + value = b'no' fm.condwrite(showsubopts, subopt, b'%s\n', value) fm.end()