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

Re: Why no one seems to care this issue in the past 3 years

From: Ulrich Eckhardt <eckhardt_at_satorlaser.com>
Date: Wed, 9 Sep 2009 09:24:48 +0200

On Wednesday 09 September 2009, Chen (陈) Jun (军) wrote:
> On Aug, 19 2006, when svn was at his 1.3.x, I asked a question on this
> mailing list, "SVN does not allow checking out parent dir if its child
> dir has been checked out",
> see http://svn.haxx.se/users/archive-2006-08/0881.shtml
>
> But now, svn 1.6.x still does not make improvement on this problem,
> except that the error message is a bit different.
>
> =========
> svn: Failed to add directory 'ChjTrivials\ichsize': a versioned
> directory of the same name already exists
> =========
>
> I'd like to get some idea about this issue from you kind users on this
> mailing list.

My guess: nobody but you cares. If I wanted to do that, I would temporarily
rename the existing working copy to a name that isn't occupied, check out the
parent and then replace its subdir with the existing, renamed working copy.

Doing that manually is good enough for most users, since the case that you
need that is _very_ rare. You however are writing a program that needs to
check out working copies in this peculiar order and are thus bitten by this,
but - hence my initial comment - you are probably the only one.

Suggestions:
1. Restructure your code to check out things in the 'normal' order.
2. Implement the above manual workaround in your code.
3. Create a patch for SVN that replaces above error message. Actually, I guess
the change would be pretty easy, it would only require checking if the child
to be created is bound to the same repository URL as the existing one. If so,
SVN could just skip this subdir and output a warning.

Uli

-- 
ML: http://subversion.tigris.org/mailing-list-guidelines.html
FAQ: http://subversion.tigris.org/faq.html
Docs: http://svnbook.red-bean.com/
Sator Laser GmbH
Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932
**************************************************************************************
Sator Laser GmbH, Fangdieckstraße 75a, 22547 Hamburg, Deutschland
Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932
**************************************************************************************
           Visit our website at <http://www.satorlaser.de/>
**************************************************************************************
Diese E-Mail einschließlich sämtlicher Anhänge ist nur für den Adressaten bestimmt und kann vertrauliche Informationen enthalten. Bitte benachrichtigen Sie den Absender umgehend, falls Sie nicht der beabsichtigte Empfänger sein sollten. Die E-Mail ist in diesem Fall zu löschen und darf weder gelesen, weitergeleitet, veröffentlicht oder anderweitig benutzt werden.
E-Mails können durch Dritte gelesen werden und Viren sowie nichtautorisierte Änderungen enthalten. Sator Laser GmbH ist für diese Folgen nicht verantwortlich.
**************************************************************************************
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2392786
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-09-09 09:26:12 CEST

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.