11

I used to work with CVS where it was no problem to compare HEAD to any branch, branch to branch or branch to HEAD. Now on SVN I have some changes on trunk I need to put on a branch, but can't seem to find an option to compare given branch to trunk.

Is it possible to have a branch project in workspace and compare it to trunk?

eagerMoose
  • 1,123
  • 5
  • 13
  • 35

1 Answers1

19

right-click on the project and choose Compare With, Branch/Tag (this is with subclipse)

enter image description here

APPENDED

What version of the svn client are you using? When I open the Compare With dialog on a project checked out from branch it lets me enter any URL (including trunk) and any revision to compare it to.

enter image description here

vinnyjames
  • 2,040
  • 18
  • 26
  • Note that I want to compare branch to trunk, not vice versa. What you're suggesting as solution only enables me to compare branch to another branch. – eagerMoose Apr 27 '11 at 18:18
  • 1
    shouldn't matter, branches/tags/trunk are just folder names in SVN so should be able to compare anything to anything – vinnyjames Apr 29 '11 at 18:25
  • 1
    yeah, but I only get the list of branches when I use "compare with > branch/tag", no mention of trunk – eagerMoose Apr 30 '11 at 10:31
  • I added another screenshot of the compare dialog, should let you compare to anything at any revision – vinnyjames Apr 30 '11 at 17:59
  • Thanks, I'll check it out first thing tomorrow morning at work. – eagerMoose May 01 '11 at 10:49
  • 2
    It works, in Subversive it's Compare to Revision/URL and then check HEAD revision . – eagerMoose May 02 '11 at 06:58
  • 1
    This answer is also useful for people searching for Git compare operations on Eclipse. And for anyone Searching for a Simple Code Review solution that does not involve installing additional tools. – Ken Jan 14 '14 at 10:00