Search code examples
svntortoisemerge

Starting TortoiseMerge with Console


I want to see what changes were made in a resvision compared to the previous one.
At the moment I am doing it by opening my local Repo and selecting show log. There I click the option "Compare with previous revision" and it starts TortoiseMerge with the correct files.

For example: I open the text-file Text1.txt
The filenames shown in the Merge-Tool are Text1.txt Revision x-1 and Text1.txt Revison x.

But I want to start it though a batch-script, where you can just enter the Revision and it will show the differneces in TortoiseMerge.

At the moment I use the command

TortoiseMerge [Revision1-path] [Revision2-path]

but I have troubles finding the right revision-paths.
So my question is, where I can find the right files, that I get the same result in TortoiseMerge as if I would open it through the conext-menu.


Solution

  • I will post the command I use, just in case someone else is searching for that.
    I got that command by using the instruction given by mellow.

    "[Path]\TortoiseSVN\bin\TortoiseProc.exe" /command:showcompare /nodekind:2 /url1:"[Repo-URL]" /revision1:9 /url2:"[Repo-URL]" /revision2:7 /headpegrevision:HEAD
    

    With this command you won't start TortoiseMerge directly, but it will show you what files were changed. Then you can select a file and it will show the changes in TortoiseMerge.