Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I continue a mercurial merge

I've spent the last few hours doing an enormous merge in mercurial. After 131 files merged, my merge tool, meld, crashed showing a python traceback. Trying to quit meld, I've inadvertently also quit out of the mercurial merge.

I'd quite like to just continue the merge from where I left off, e.g. something like hg merge --continue but I can't find an option to do that.

If I re-run hg merge it warns about uncommitted outstanding changes. hg resolve doesn't list anything to resolve, but I am most likely only about 60% of the way through the merge.

Is there a command to continue the merge from where I was?

like image 645
asc99c Avatar asked Jan 31 '23 02:01

asc99c


1 Answers

In TortoiseHg:

  1. Select all files which are still marked as conflicted
  2. Right-click on the files, and select "Restart merge"
  3. Resolve the files
  4. Commit the change

From command line:

  1. hg resolve --all (continue the merge with all files that are still marked as conflicted)
  2. Resolve the files
  3. hg commit (commit the change)

hg resolve does nothing. To list files which have outstanding conflicts, use hg resolve --list. (The prefix U means that the file is unresolved, R is resolved.)

like image 144
Mike Rosoft Avatar answered Feb 05 '23 16:02

Mike Rosoft