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

Sébastien Pierre sebastien at xprima.com
Tue Jun 6 10:44:09 CDT 2006


Le lundi 05 juin 2006 à 18:19 -0500, TK Soh a écrit :

> On one I would like the options to be consistent wit their counterpart
> in hg status, ie. 'hg revert -r' should act on the files reported by
> 'hg status -r'. On the other hand, -r is already used in 'hg revert'
> as --rev, so....

Maybe we could handle the case where -rXXX means a revision, otherwise
it means an option ?

hg revert -r43 -r 

would not seem that strange to me, as -rREV is explictely stated as
being the first argument to revert:

hg revert [-r REV] [NAME]...

 -- Sébastien




More information about the Mercurial mailing list