Is this the expected revert behaviour ?

Sébastien Pierre sebastien-lists at type-z.org
Fri May 5 20:25:05 CDT 2006


Le 06-05-05 à 20:00, Johannes Stezenbach a écrit :

>> 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.

This sounds better than "hg revert $(hg root)". Shorter, less cryptic.

  -- Sébastien




More information about the Mercurial mailing list