[issue283] Add options to revert to revert only files of a certain status

Sébastien Pierre sebastien at xprima.com
Tue Jun 6 13:13:40 CDT 2006


Le mardi 06 juin 2006 à 18:19 +0200, Christian Boos a écrit :

> How would you interpret: hg  revert -r 43, as 43 might as well be a 
> filename?

This is definitely ambiguous, but could be a avoided if the syntax was
-r43 (single argument) instead of -r 43 (two arguments). But that's
another debate ;)

> Maybe we should take a different approach:
>   hg revert --only r,a
> or
>   hg revert --only modified
> 
> (i.e. use additions, removals and modified as keywords, and
> interpret prefixes of those keywords as well)

I find this solution clear, and actually quite natural. I would also
like to see a more compact form, such as:

  hg revert -oram

to revert only removed, added and modified.

 -- Sébastien






More information about the Mercurial mailing list