Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SVN branch compare

How do I compare one branch with another? I want to compare a branch with the latest revision in trunk.

like image 922
tekumara Avatar asked Nov 24 '09 00:11

tekumara


People also ask

How do I find the difference between two branches 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'.

How do I compare with branch?

In order to compare two branches easily, you have to use the “git diff” command and provide the branch names separated by dots. Using this command, Git will compare the tip of both branches (also called the HEAD) and display a “diff” recap that you can use to see modifications.

How do I compare codes 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 can I compare two svn branches in eclipse?

Right click on the project -> Compare With -> Branch.. > or svn properties. This drives compare view (differential view) unusable.


2 Answers

You could start with:

svn diff http://REPOS/trunk http://REPOS/branches/B 

(Where http://REPOS is your repository path including the parents of trunk and branches.)

This will print a large quantity of text, including all the textual changes but not the binary changes except to say where and when they occurred.

like image 151
Edmund Avatar answered Sep 16 '22 14:09

Edmund


If you are just looking for high level of what files are different and do not want to see all the contents, use:

svn diff ^/trunk ^/branches/dev --summarize

(This compares trunk and dev branch)

like image 40
cchamberlain Avatar answered Sep 17 '22 14:09

cchamberlain