TortoiseSVN diff command line

The command I use is:

TortoiseProc /command:diff /path:myfile.txt 

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

+7
command-line svn diff tortoisesvn
source share
2 answers

Create DWORD Registry Value

 HKCU\Software\TortoiseSVN\Debug 

and set it to 1.

After that, whenever you use a command, a pop-up dialog box appears with the exact command line parameters that TortoiseProc.exe starts with.

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

+7
source share

I have not tested, but this should work according to docs

 TortoiseProc /command:diff /startrev:WORKING /endrev:HEAD /path:myfile.txt 
+2
source share

All Articles