[issue2821] hg up --clean abandon : cannot specify both -c/--check and -C/--clean

kemar bugs at mercurial.selenic.com
Sat May 21 04:46:37 CDT 2011


New submission from kemar <marc at marcarea.com>:

Mercurial: version 1.8.3
OS: OSX 10.6.7

Command: hg up --clean

Error:
abandon : cannot specify both -c/--check and -C/--clean

dispatch.py l.332:
print args
['--clean']
args = aliasargs(entry[0]) + args
print args
['--check', '--clean']

Traceback:
hg up --clean --traceback
Traceback (most recent call last):
  File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 58, in _runcatch
    return _dispatch(ui, args)
  File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 601, in _dispatch
    cmdpats, cmdoptions)
  File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 406, in runcommand
    ret = _runcommand(ui, options, cmd, d)
  File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 655, in _runcommand
    return checkargs()
  File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 609, in checkargs
    return cmdfunc()
  File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 598, in <lambda>
    d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
  File "/Library/Python/2.6/site-packages/mercurial/util.py", line 433, in check
    return func(*args, **kwargs)
  File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 302, in __call__
    util.checksignature(self.fn)(ui, *args, **opts)
  File "/Library/Python/2.6/site-packages/mercurial/util.py", line 433, in check
    return func(*args, **kwargs)
  File "/Library/Python/2.6/site-packages/mercurial/extensions.py", line 133, in wrap
    util.checksignature(origfn), *args, **kwargs)
  File "/Library/Python/2.6/site-packages/mercurial/util.py", line 433, in check
    return func(*args, **kwargs)
  File "/Library/Python/2.6/site-packages/hgext/mq.py", line 3049, in mqcommand
    return orig(ui, repo, *args, **kwargs)
  File "/Library/Python/2.6/site-packages/mercurial/util.py", line 433, in check
    return func(*args, **kwargs)
  File "/Library/Python/2.6/site-packages/mercurial/commands.py", line 4064, in update
    raise util.Abort(_("cannot specify both -c/--check and -C/--clean"))
Abort: cannot specify both -c/--check and -C/--clean
abandon : cannot specify both -c/--check and -C/--clean

----------
messages: 16337
nosy: kemar
priority: bug
status: unread
title: hg up --clean abandon : cannot specify both -c/--check and -C/--clean

____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue2821>
____________________________________________________


More information about the Mercurial-devel mailing list