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"
Just hold down the Shift key while you right click on the file. Then select TortoiseSVN → Diff with URL. In the following dialog, specify the URL in the repository with which you want to compare your local file to.
Display the differences between two paths. You can use svn diff in the following ways: Use just svn diff to display local modifications in a working copy. Display the changes made to TARGET s as they are seen in REV between two revisions.
Go to the repository browser (<right click>/TortoiseSVN/Repo-browser/<enter URL>). Open right click menu on branch B, select 'Mark for comparison'. Then open right click menu on branch A, select 'Compare URLs' or 'Show differences as unified diff'.
The svn diff command reveals the differences between your working copy and the copy in the master SVN repository.
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.
I haven't tested, but this should work according to docs
TortoiseProc /command:diff /startrev:WORKING /endrev:HEAD /path:myfile.txt
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With