[issue283] Add options to revert to revert only files of a certain status
Thomas Arendsen Hein
thomas at intevation.de
Tue Jun 6 18:59:39 UTC 2006
* Markus F.X.J. Oberhumer <markus at oberhumer.com> [20060606 20:43]:
> Bryan O'Sullivan wrote:
> >On Mon, 2006-06-05 at 23:42 +0200, Markus F.X.J. Oberhumer wrote:
> >>Thomas Arendsen Hein wrote:
> >>>New submission from Thomas Arendsen Hein <thomas at intevation.de>:
> >>>
> >>>hg revert should take the same flags as hg status:
> >>> -m --modified revert modified files (overwrite local changes)
> >>> -a --added revert added files (don't add on commit)
> >>> -r --removed revert removed files (undelete file)
> >>It might be too late anyway, but I'd strongly suggest unifying the interface
> >>meaning -r stands for revision in all commands (this would affect at least hg
> >>status as well).
> >The logical thing to do would be to uppercase all of the one-character
> >options to "hg status", then, and use those same names for "hg revert".
> >So -r becomes -R, and everyone heaves a sigh of relief.
-R conflicts with --repository (as someone else already stated) and
-I conflicts with --include.
> Another option could be to use --state=XXX (short form -s), so that one could
> use things like "hs st -s mardui" instead of the proposed "hg st -MARDUI".
Yeah, nice idea in general, though we don't use -s for other
commands yet, so we burn a free lowercase char.
But in general +1 on that, just needs a different short option.
Thomas
--
Email: thomas at intevation.de
http://intevation.de/~thomas/
More information about the Mercurial
mailing list