简体   繁体   中英

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, eg 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?

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.)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM