TortoiseSVN command line diff

command linediff()svntortoisesvn

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"

Best Answer

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.