# HG changeset patch # User Matt Mackall # Date 2006-12-01 07:42:52 # Node ID 86c1d1d3559314f6824ff3de9c9ba07f8c0d6870 # Parent 0897bf8d54c7fd1a482fb286a0fde4cd396c3d95 Fix argument handling for hg -v pull -v x (issue 436) diff --git a/mercurial/fancyopts.py b/mercurial/fancyopts.py --- 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