according to Mercurial’s commit help message:
If a list of files is omitted, all changes reported by "hg status" will be committed.
Is there an easy way to change this behavior?
I’d like Mercurial not to commit any changes, unless the files are explicitly specified.
edit
I am on Linux and I am using the command line.
This seems to do the trick:
It doesn’t do anything because all files are excluded, but if you give any files, those will be included.
You could alias it:
then:
Personally I wouldn’t want to get used to this type of workflow. It’s usually just as easy to:
hg record-I/-Xfor that single commit