lens
lens

Reputation: 153

How to use hg to back branch?

I have local branch and master branch. I use hg merge local branch with master branch, after that I find that master branch version is modified and I have to merge with new master branch.

I don't know how to back local branch status and merge new master branch.

Upvotes: 0

Views: 46

Answers (1)

Mark Tolonen
Mark Tolonen

Reputation: 177901

If you committed the merge and then found that there were new changesets on master, you could do either of:

  1. hg pull the new changesets, then hg merge again, then push the two merges.
  2. hg strip your merge, then hg pull and hg merge <localbranch> again.

If you haven't committed first merge yet, you could hg update default -C to throw out the merge changes, then hg pull and hg merge <localbranch> again.

Upvotes: 1

Related Questions