When Mercurial is running under cygwin, it’s a bit tricky to figure out how to spawn WinMerge to resolve merge conflicts. How can I do this?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The trick is that cygwin paths are not the same as Windows paths, so you need a little script that converts the cygwin paths to Windows paths before passing them as arguments to WinMerge.
Here’s how to do it:
(1) Create a shell script in
/usr/bin/winmergeas follows:Note:
cygpathconverts path names. If WinMerge isn’t in the default location, change the path here.(2) Make that file executable
(3) Add the following to your
~/.hgrcfile:Note! You probably already have a [ui] section with your name in it. Remember to merge my changes with yours, don’t just add a new [ui] section. For example, my .hgrc looks like this: