[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [Subclipse-users] getContents and getRevision

From: Christian Sell <christian.sell_at_netcologne.de>
Date: 2006-04-18 05:23:55 CEST

> These options were available in Subclipse long before I started working
> with it. As I understand it, "Get Contents" replaces the contents of the
> local file with the contents of the selected revision. If that presumably
> produces a file that is now different, it will show as modified and could
> be committed.
>
> "Get Revision" is kind of like using "svn switch" to replace the local
> file with the selected revision from the repository. Since this actually
> changes the file to that revision, it will not show up as modified. If
> you edited the file, you could not even commit it because it is likely out
> of date. If you did an update, the file would go away and be replaced
> with whatever was at head. Presumably this option would exist to do a
> special build or something.
>
> If your goal is to undo a change you committed, I would recommend a
> different option. Right-click on the file and do Team -> Show Resource
> History. Then select the revision, or range of revisions, where you
> committed the changes that you want to undo. Then right-click and select
> the Revert Changes from Revision XXX option. This will use the Subversion
> merge command to undo the changes. This option can be done at the
> project, folder or file level depending on how much you want to undo.

ok, I will consider this next time. However, I would still contend that the
steps you describe are not directly obvious from the menus, while the intuitive
approach is to choose "replace with"->"Revision..". Also, if i remember
correctly, this follows the CVS plugin.

I agree that it may not be clear whether "replace" means to switch or to revert
revisions. But in any case I suggest to offer more descritive labels instead of
"get contents" and "get revision". Maybe "switch" and "overwrite" would be good
candidates.

And, getting back to my suggestion from the previous mail, offering the "get
contents" and "get revision" options when the view was invoked via "compare" is
completely misleading.

thanks,
Christian

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subclipse.tigris.org
For additional commands, e-mail: users-help@subclipse.tigris.org
Received on Tue Apr 18 05:24:14 2006

This is an archived mail posted to the Subclipse Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.