--- a/mercurial/help.py Wed Dec 19 09:20:32 2018 -0800
+++ b/mercurial/help.py Wed Dec 19 09:33:42 2018 -0800
@@ -165,14 +165,14 @@
if isinstance(default, fancyopts.customopt):
default = default.getdefaultvalue()
- if (default and not callable(default)) or default is False:
+ if default and not callable(default):
# default is of unknown type, and in Python 2 we abused
# the %s-shows-repr property to handle integers etc. To
# match that behavior on Python 3, we do str(default) and
# then convert it to bytes.
defaultstr = pycompat.bytestr(default)
- if isinstance(default, bool):
- defaultstr = _("on") if default else _("off")
+ if default is True:
+ defaultstr = _("on")
desc += _(" (default: %s)") % defaultstr
if isinstance(default, list):