Let "hg add" do nothing
Neal Becker
ndbecker2 at gmail.com
Wed Aug 22 11:00:48 UTC 2007
Steffen Kaiser wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> 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.
>
I brought up the same issue before. I find the current behavior strange,
surprising, and harmful.
I vote +1 that hg should consistently treat all instances of 'hg [whatever]'
with no argument as a noop. When we want to recursively operate, we should
use 'hg [whatever] [dir]', as in 'hg add .'. In addition, commands that
currently take a possible directory argument, such as add, ci, should not
operate on a parent of the cwd unless explicitly asked to.
More information about the Mercurial
mailing list