stuck in commit/update/push/pull loop
Dennis Brakhane
brakhane at googlemail.com
Wed Dec 21 18:37:50 UTC 2011
On Tue, Dec 20, 2011 at 6:33 PM, Steve Franks <bahamasfranks at gmail.com> wrote:
> Still, time to move on to hg methinks. I just have to get used to explicitly deleting again.
> That was convenient when you were managing huge collections of files
> (I keep CAD files and all manner of stuff in my repositories).
You can use "addremove" to let hg automatically add/remove all files
that are not ignored before
committing. If you are really adventurous, you can even use the -A
option to commit, which runs
an explicit addremove before committing. Even better, if you really
like the "every commit automatically
removes files", you can configure an alias in your .hgrc:
[alias]
ca = commit -A
(you can even write "commit = commit -A", essentially performing an
implicit addremove before every commit)
Just be sure that you have your .hgignore correctly configured.
Otherwise, you will find your commits littered with temporary/binary
files)
Greetings,
Dennis
More information about the Mercurial
mailing list