mercurial/fancyopts.py
changeset 3742 86c1d1d35593
parent 3673 eb0b4a2d70a9
child 3749 f9567a7fa3b3
--- a/mercurial/fancyopts.py
+++ b/mercurial/fancyopts.py
@@ -24,7 +24,7 @@ def fancyopts(args, options, state):
         elif dt[map[opt]] is type(1): state[map[opt]] = int(arg)
         elif dt[map[opt]] is type(''): state[map[opt]] = arg
         elif dt[map[opt]] is type([]): state[map[opt]].append(arg)
-        elif dt[map[opt]] is type(None): state[map[opt]] = 1
+        elif dt[map[opt]] is type(None): state[map[opt]] = True
 
     return args