Currently I have two branches in a Mercurial repository. One the “default” branch where I do most of my development and another a “production” one where the code that is currently live goes.
My question is how do I “merge” my default branch with the production one.
You do
to bring in the new stuff from
defaultinto theproductionbranch. You’ll have to resolve any merge conflicts at this point. There is no chance of data loss since you are working with committed changes. You can abort the merge withhg update -Cand you can re-do the merge of a filefoo.cwithWhen you’re satisfied with the merge, you run
to create a merge changeset that describes how the two branches should be merged.
There are many tutorials on this, for example: