Partial commits made easy
Douglas Philips
dgou at mac.com
Sun Jul 13 13:19:30 UTC 2008
On 2008 Jul 13, at 6:29 AM, Andreas Axelsson indited:
> A nice feature in Perforce is that as you bring up the editor for a
> commit message, all the files to be committed are listed below the
> check in comment, just as in Mercurial. However, if you remove any
> files from the list, they aren’t committed and stay in their
> modified state. Compare with git’s “add” command. It’s quite a nice
> feature to have when you want to commit a subset of a list of files
> for which there are no simple wildcards.
>
> I’ve yet to dive into the Hg codebase, since I’ve had major troubles
> getting a compatible build environment up and running, otherwise I’d
> give it a shot myself. Or does anyone else volunteer?
I hope that doesn't become standard behaviour. The list of files there
is a comment reminding the commit message writer of what is going to
be committed. I ignore the list if it is small; if not I delete the
entire thing so that I have more screen real estate to enter my commit
message. Just my buck-two-fitty.
--Doug
More information about the Mercurial
mailing list