Is this the expected revert behaviour ?
Zbynek Winkler
zwin at users.sourceforge.net
Sat May 6 04:59:56 CDT 2006
Johannes Stezenbach wrote:
>On Fri, May 05, 2006, Bryan O'Sullivan wrote:
>
>
>>And another thing:
>>
>>By default, "hg revert" reverts the entire working directory if passed
>>no arguments. You can't lose any work, since it saves .orig files if
>>necessary, but it could be annoying anyway.
>>
>>I think revert should require at least one name to revert. If you
>>really want to revert the entire working dir, just do something like
>>this:
>>
>> hg revert $(hg root)
>>
>>instead. Opinions?
>>
>>
>
>"hg add" has a similar problem.
>
>Following the principle of least surprise I suggest
>"hg add --all" and "hg revert --all", and
>bare "hg add" and "hg revert" should just print
>a help message.
>
>
+1
--
http://zw.matfyz.cz/ http://robotika.cz/
Faculty of Mathematics and Physics, Charles University, Prague, Czech Republic
More information about the Mercurial
mailing list