Fix argument handling for hg -v pull -v x (issue 436)
authorMatt Mackall <mpm@selenic.com>
Fri, 01 Dec 2006 01:42:52 -0600
changeset 3742 86c1d1d35593
parent 3741 0897bf8d54c7
child 3743 3a099154b110
child 3745 68cddfbbe737
Fix argument handling for hg -v pull -v x (issue 436)
mercurial/fancyopts.py
--- a/mercurial/fancyopts.py	Fri Dec 01 01:29:14 2006 -0600
+++ b/mercurial/fancyopts.py	Fri Dec 01 01:42:52 2006 -0600
@@ -24,7 +24,7 @@
         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