mercurial/commands.py
changeset 9456 c564dbb2a6d5
parent 9430 b5e9037d672b
parent 9451 3e673c988c85
child 9467 4c041f1ee1b4
equal deleted inserted replaced
9455:176b7d42e6cc 9456:c564dbb2a6d5
  3045         raise util.Abort(_("please specify just one revision"))
  3045         raise util.Abort(_("please specify just one revision"))
  3046 
  3046 
  3047     if not rev:
  3047     if not rev:
  3048         rev = node
  3048         rev = node
  3049 
  3049 
  3050     if not clean and check:
  3050     if check and clean:
       
  3051         raise util.Abort(_("cannot specify both -c/--check and -C/--clean"))
       
  3052 
       
  3053     if check:
  3051         # we could use dirty() but we can ignore merge and branch trivia
  3054         # we could use dirty() but we can ignore merge and branch trivia
  3052         c = repo[None]
  3055         c = repo[None]
  3053         if c.modified() or c.added() or c.removed():
  3056         if c.modified() or c.added() or c.removed():
  3054             raise util.Abort(_("uncommitted local changes"))
  3057             raise util.Abort(_("uncommitted local changes"))
  3055 
  3058