views:

1273

answers:

2

I have TortoiseSVN set up to use KDiff3 as the conflict resolution tool (I find it shows more information useful to the merge than the built-in TortoiseMerge does).

When I open a file with Tortoise's "Edit Conflicts" command it shows me the three files and I have to select "Merge->Merge Current File" manually. The problem is that KDiff3 saves the result to source_file.working instead of to source_file. So without doing a Save As, the real file with the conflict doesn't get modified. Is there a way around doing this manual Save As every time?

I know this isn't strictly a programming question but it's about an ancillary process common enough to programmers that it should be useful here. I couldn't find the answer to this elsewhere.

+1  A: 

Turns out I just needed a more specific command line. I had it set simply to the path to kdiff3.exe, and hoped the default arguments passed from TortoiseSVN would be enough. Not so. Here's the one needed (the key being the -o argument):

C:\Program Files\KDiff3\kdiff3.exe %base %theirs %mine -o %merged
Owen
+4  A: 

Mine is a bit longer:

"C:\Program Files\KDiff3\kdiff3.exe" %base %mine %theirs -o %merged --L1 Base --L2 Mine --L3 Theirs
Milen A. Radev
So it is! And since I'm not entitled to the answer credit for this question, and you were more comprehensive, here you go.
Owen