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

Re: [Subclipse-users] Attaching existing project to Eclipse

From: Mark Phippard <markphip_at_gmail.com>
Date: 2007-07-16 15:57:15 CEST

On 7/16/07, Øyvind Harboe <oyvind.harboe@zylin.com> wrote:
> On 7/16/07, Mark Phippard <markphip@gmail.com> wrote:
> > On 7/16/07, Øyvind Harboe <oyvind.harboe@zylin.com> wrote:
> > > In switching from CVS to Subversion, I can no longer find a way to
> > > attach an existing Eclipse project to an existing Subclipse folder.
> > >
> > > The "Share Project" requester says "The folder indicated by the URL
> > > cannot already exist", see attached picture.
> >
> > Correct, we do not support attaching a local project with one in the
> > repository. The underlying Subversion API's do not support it. You
> > have to checkout the project from the repository.
> >
> > Subversion 1.5 (not released yet) has enhanced their checkout command
> > in a way that we could change this restriction. We would still have
> > to do a full checkout, pulling down all of the content from the
> > repository and over the network, but Subversion would "slide" the
> > checkout underneath your existing files. If there were differences,
> > they would show as outgoing changes. So it would be a small win to
> > add this and we likely will.
>
> I've deviced the following workaround. Alas I wiped my local files in
> experimenting w/Subclipse(no great harm done this time which is why I
> didn't take great care), so I haven't tested procedure properly yet:
>
> - make a *copy* of the old Eclipse project
> - delete Eclipse project
> - check out existing project from Subversion
> - copy all files from old Eclipse project to freshly checked out project.
> - compare the two projects and delete the files that where deleted
> from the existing Eclipse project but still existed under Subversion

Yes, if you expected to have some differences in the local version of
your files (and you wanted those differences) then this is exactly
what you should do. Checkout using Subclipse and then copy the old
files back over the ones you checked out.

-- 
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 Mon Jul 16 15:56:26 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.