Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TortoiseSVN command line diff

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"

like image 250
jb. Avatar asked Jan 07 '10 21:01

jb.


People also ask

How do I diff files in svn?

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.

How do you find the difference between two svn revisions?

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.

How do I compare codes in svn?

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'.

What is the use of svn diff command?

The svn diff command reveals the differences between your working copy and the copy in the master SVN repository.


2 Answers

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.

like image 151
Stefan Avatar answered Oct 05 '22 07:10

Stefan


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

TortoiseProc /command:diff /startrev:WORKING /endrev:HEAD /path:myfile.txt
like image 32
Sander Rijken Avatar answered Oct 05 '22 06:10

Sander Rijken