Prevent commit to commit everything
Harald Kirsch
Harald.Kirsch at raytion.com
Thu Aug 12 12:08:10 UTC 2010
Hi all,
in the software system I track with mercurial, file changes appear
"automagically" after configuration through the GUI. I need to commit
different directories with different commit messages and normally do
hg commit -m '...' .
Being a heavy svn user too, every so often I forget the trailing dot and
everything is commited with a useless commit messages. Very annoying.
I tried to use
[defaults]
commit = .
but these are obviously not defaults but additional arguments, meaning
that the . even ends up in the command when I provide a different
argument, e.g. just one specific file.
Is there another way to handle this. It would suffice to me if hg
plainly refuses to commit without an explicit argument.
Any ideas?
Harald Kirsch
More information about the Mercurial
mailing list