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

Re: Switch and svn:externals

From: <kfogel_at_collab.net>
Date: 2004-07-23 15:57:32 CEST

Ross Mark <rossm@controllingedge.com.au> writes:
> I have been hesitant to submit the patch to the dev list as I'm not
> sure the logic would be approved of as it goes along the following
> lines.
> If (wc->url != external->url)
> if (svn switch external->url fails)
> {
> svn cleanup wc
> Do existing delete and clean checkout.
> }
> The logic is a bit more complicated than that but not much. What I'm
> concerned about is the call to svn cleanup which is required because
> svn switch would leave the wc locked if it failed.

Is there a way to predict in advance whether the 'switch' should or
not fail, perhaps by comparing repository UUIDs from the .svn/entries
files?

I like the general shape of your solution, but feel edgy about trying
a command to see if it fails. It seems like in this case we ought to
know whether a switch would work in the first place...

> I was going to wait until 1.1 was fully released before trying to
> submit the patch.

The trunk is still under development as usual, of course, but if you
want to wait until 1.1 is out just to simplify things, that's fine.

-Karl

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Jul 23 17:28:51 2004

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

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