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

Re: [Subclipse-users] Switch and Get Revision not working ?

From: Mark Phippard <markphip_at_gmail.com>
Date: 2007-09-04 16:35:55 CEST

On 9/4/07, David Balazic <David.Balazic@hermes-softlab.com> wrote:
> From: Mark Phippard [mailto:markphip@gmail.com]
>
> > On 9/4/07, David Balazic <David.Balazic@hermes-softlab.com> wrote:
> > > > Update is just bringing the file back to HEAD. If the file does not
> > > > currently exist because of the Switch, then Add would be the normal
> > > > operation.
> > > >
> > > > Maybe the file was renamed during this revision range?
> > >
> > > No. It had the simplest one line change.
> >
> > I don't think Subversion would get this wrong.
> >
> > When you take the Switch option, are you selecting a specific file, a
> > folder, or the whole project? Is the URL to the item you selected
> > properly showing in the subsequent dialog?
>
> I select the file my_proj/pom.xml in the package explorer in the Java perspective.
> I right click it and select Team / Switch...
> The "Switch to Branch/Tag" dailog appears.
> It shows the URL http://my.server/projects/foo/project_alpha/+BAR/src/trunk/my_proj/pom.xml
> In the "Revision" frame I select the "Revision" radio button and click the "Show Log" button.
> A dialog titled "Resource history - pom.xml" appears, listing (correctly) the revisions of this file.
> I select a revision (which is perfectly OK, since I can check its contents in "SVN Resource History"
> by "Compare" or "Get Contents") and click OK.
> The revision number appear next to the "Revision" radio item in the previous dialog.
> I click OK and the file disappears from the project.
> Not even refresh (F5) brings it back.
> The Tean Synch... perspective (after manually clicking the "Synchronize SVN (Workspace)" button) now
> lists the pom.xml file as new and updatable (blue arrow pointing left, with + sign on it).
>
> The SVN command for the switch is again :
> switch http://my.server/projects/foo/project_alpha/+BAR/src/trunk/my_proj/pom.xml D:/eclipse_workspaces/eclipse-workspace_3/my_proj/pom.xml -r2945
>
> D D:/eclipse_workspaces/eclipse-workspace_3/my_proj/pom.xml
>
> Updated to revision 2945.
>
> ===== File Statistics: =====
>
> Deleted: 1

Given that Subversion is deleting the file it is expected that it
would disappear. I cannot offer any explanation as to why it is being
deleted though. Try running a similar command to what you see in the
console from the command line and see what happens.

In your preferences, I assume you are using JavaHL and not SVNKit?

-- 
Thanks
Mark Phippard
http://markphip.blogspot.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subclipse.tigris.org
For additional commands, e-mail: users-help@subclipse.tigris.org
Received on Tue Sep 4 16:32:56 2007

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.