How to avoid merge weirdness

Colin Barrett colin at springsandstruts.com
Thu Mar 17 08:24:28 UTC 2011


http://hg.adium.im/adium-1.4/graph

It doesn't really matter that they're in there (hg bisect don't care ;) but you *can* prevent them. Especially when switching around between branches and going back within history, it's really easy to make a commit on top of an old version, or try and do a merge from a crazy revision.

Before you do a merge or commit, use the `hg parent` command to check what the parent rev of the current working directory is -- if it doesn't look like tip, run an `hg up`. You can also use `hg parents` see both parents when you're int he process of merging.

-Colin



More information about the devel mailing list