views:

307

answers:

2

The command I'm using is:

TortoiseProc /command:diff /path:myfile.txt

It will open up the diff TortoiseSVN window, but it will only compare the working copy with the HEAD copy. What I want is to compare the working copy with the latest version in the Repo that is different. Basically, the same as running the right-click->TortoiseSVN-> "Diff" if the HEAD is different from the working copy. Otherwise running the right-click->TortoiseSVN -> "Diff with Previous Version"

A: 

I haven't tested, but this should work according to docs

TortoiseProc /command:diff /startrev:WORKING /endrev:HEAD /path:myfile.txt
Sander Rijken
when I try this, I get a popup that says URL 'file:///myfile.txt' non-existent in revision 0
jb
+2  A: 

Create the registry DWORD value

HKCU\Software\TortoiseSVN\Debug

and set its value to 1.

After that, whenever you use any command, a dialog will pop up first showing you the exact command line parameters TortoiseProc.exe is started with.

Once you know the command you want to use, you can remove the registry entry again.

Stefan
That gives a popup of the parameters, but they're the same as what I pass in. Nice, but doesn't help with the question at hand.
jb
How does it not help? You said you wanted to do the same as "right-click, etc.". So set the registry key and then execute that command.If that's not what you want, you asked the question wrong.
Stefan