[issue283] Add options to revert to revert only files of
a certain status
Christian Boos
cboos at neuf.fr
Tue Jun 6 11:19:48 CDT 2006
Sébastien Pierre wrote:
> 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
>
How would you interpret: hg revert -r 43, as 43 might as well be a
filename?
First check if 43 is not the name of a file? This doesn't sound robust
to me.
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)
-- Christian
More information about the Mercurial
mailing list