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

TK Soh teekaysoh at gmail.com
Tue Jun 6 12:56:20 CDT 2006


On 6/6/06, Thomas Arendsen Hein <thomas at intevation.de> wrote:
> * Sébastien Pierre <sebastien at xprima.com> [20060606 17:47]:
> > Le lundi 05 juin 2006 à 18:19 -0500, TK Soh a écrit :
> > 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]...
>
> hg revert -r 43
>
> should that revert to rev 43 or revert all removed files below
> directory 43? And think of tags instead of revision numbers, so you
> can't even use heuristics like "Hey, only numbers".

Looks like we need to pick something else, and leave -r for --rev.
Just to get the game started, how about -o (--obsolete)? The rule is
that we need to pick something that will be common on both 'hg status'
and 'hg revert', for the sake of consistency.



More information about the Mercurial mailing list