changeset 3742:86c1d1d35593

Fix argument handling for hg -v pull -v x (issue 436)
author Matt Mackall <mpm@selenic.com>
date Fri, 01 Dec 2006 01:42:52 -0600
parents 0897bf8d54c7
children 68cddfbbe737 3a099154b110
files mercurial/fancyopts.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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