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

Re: R: R: Subclipse "Checkout as..." (strange?) working

From: Alvin Thompson <alvin_at_thompsonlogic.com>
Date: 2005-08-03 20:26:28 CEST

Mark Phippard wrote:
> No, Subclipse deletes it. It does so because the svn checkout command
> will fail if it encounters a file/folder of the same name. Short of doing
> a check on every local file, we have no way to know if this is going to
> happen, so we clean out the project folder before we issue the checkout
> command.

would it be that hard to implement? could you just recursively list the
existing contents of the directory and do a corresponding 'svn list' on
the repository to compare? it wouldn't be much of a performance hit
because the local directory would almost always be a sparsely-populated
and not-too-deep new project. also, there are obvious short-circuits
that come to mind with such an algorithm.

> The enhancement that Subversion is considering is just making the checkout
> process overlay an existing file/folder. Another alternative is to
> preserve the existing file, but still create the pristine version. Either
> way would work nicely for us.

IMHO it would be much safer to use the above approach and let the user
decide on a case-by-case basis. the hardest part would be creating the
GUI for resolving the conflict.

-alvin
Received on Thu Aug 4 04:26:28 2005

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.