selecting files during commit

Satish Balay balay at fastmail.fm
Tue Jul 25 23:40:52 UTC 2006


When 'hg commit' is invoked - mercurial attempts to create a changeset
for all modified files.

Sometimes I should be commiting just a couple of files - not all. But
invariably I forget and type in 'hg commit'. And this brings up the
editor [with a prompt to enter changeset comments]

Is there a way to create a commit with a subset of files at this
stage? [one way is to remove the comments and quit the editor - so
that 'hg commit' aborts. And then retry wiht 'hg commit filenames']

However 'hg commit ' brings up the list of editied files - when it
prompts for changeset comments. It would be great if I remove some
files from this list - then the changeset won't include these files.

thanks,
Satish



More information about the Mercurial mailing list