Let "hg add" do nothing
Benoit Boissinot
bboissin at gmail.com
Mon Aug 20 18:34:27 CDT 2007
On 8/15/07, Steffen Kaiser <skhg at smail.inf.fh-bonn-rhein-sieg.de> wrote:
>
> Hello,
>
> is there a way to let have
>
> $ hg add
>
> (no arguments)
>
> do nothing, but display the help or something harmless like that?
>
> The default of "If no names are given, add all files in the repository."
> really bugs me.
>
This has come up before with revert. The behaviour was changed to not
revert anything if --all isn't passed.
One difference between revert and add, is that revert is non-destructive.
(Personnaly I dislike having to type --all each time I want to revert
the whole repo, but I can understand the reason why it was changed)
"hg help add" works fine if you want the help (I think you shouldn't
run any tool blindly without reading the help or the manpage)
regards,
Benoit
More information about the Mercurial
mailing list