Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the difference between Subclipse Get Contents and Get Revision?

When using the Eclipse->Team->Show History view, what's the difference between using Subclipse "Get Contents" and "Get Revision" options on a revision of a file?

Is there any way to see what svn commands Subclipse is issuing behind the scenes?

like image 279
Scott Bale Avatar asked Sep 18 '08 14:09

Scott Bale


2 Answers

From the Subclipse manual (Help > Help Contents):

Get Contents

Use this option to update the contents of the selected file in your working copy with the contents of the revision in the repository. The revision number of your local file is not changed by this option.

This option is only valid when the resource history was launched for an individual file in a local working copy.

Get Revision

Use this option to replace the file in your working copy with the selected revision in the repository. The revision number of your local file is changed to the selected revision.

This option is only valid when the resource history was launched for an individual file in a local working copy.

Pretty self-explanatory.

like image 81
michaeljoseph Avatar answered Nov 07 '22 09:11

michaeljoseph


Get contents just shows you the file's contents, while get revision replaces your version of the file.

To see the commands run by subclipse in the console view you should check the "Show SVN console automatically when command is run" option in tools/preferences/team/svn/console.

like image 27
Zsolt Szeberenyi Avatar answered Nov 07 '22 08:11

Zsolt Szeberenyi