Warm tip: This article is reproduced from stackoverflow.com, please click
eclipse svn

Tree compare revision in Eclipse SVN

发布于 2020-04-03 23:50:49

When I have pending changes in my workspace I can rightclick the project and select "Compare with->Base Revision", which gives me a tree view of all pending changes with the possibility to view each changed file in the diff view.

This is what I would like to have also for older revisions, for example when doing a code review. Select the revision from history view and see all changes, be able to navigate between the files and directly compare them easily without having to select each changed file individually and select compare (which means a new server roundtrip, waiting for the dialog to appear, waiting for the revision to be fetched etc.). Currently this is a very tedious process and I can see that the basic functionality is there.

Questioner
koljaTM
Viewed
54
koljaTM 2013-04-18 15:49

Ok, so the best I could find was right-clicking on the project, "Team->Show History", then selecting the desired revision from the list and selecting "Compare...", and it will give me the desired view with tree on top and comparison side by side in the bottom.

The "trick" seems to be that it has to be the history of a folder, not a single file, otherwise it will complain that "Operation does not apply to directory". But if I select from a directory history, I can also edit the svn paths to compare to e.g. include the parent folder as well, if the commit contains several projects.