As a follow-up to the last post, you can also use FileMerge to handle merges with Mercurial.
Write a script and put it on your $PATH
First, you need to write a script that will force opendiff to wait before returning during a merge. Name the script opendiff-w.
1 2 | |
Then you need to make it executable.
1
| |
Finally, put the script on your $PATH. I put mine in a folder called ~/development/scripts/path, and added this to my ~/.profile:
1
| |
Source the file and make sure you can execute the file you just created.
1 2 3 | |
Tell Mercurial to use opendiff-w for merges
Edit your ~/.hgrc file and add the following:
1 2 3 4 5 6 | |
Make sure your executable path includes the opendiff-w at the end. For example, mine is:
1
| |
You are good to go. Next time you do a hg merge, Mercurial will use FileMerge to let you manually fix the conflict.