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

RE: "a versioned directory of the same name already exists" error on switch - or update

From: Hutchins, P. Michael <pmh_at_draper.com>
Date: Sun, 01 Feb 2009 08:46:46 -0500

Thanks, Hari.
 
The bugfix branch is almost brand new. I think there had been only one commit since its birth.
(nothing relevant to the folders that svn has complained about)
 
 
We've experienced case-difference problems - and explicitly considered that here; as far as we know, no.
 
 
Re ancestry: I think my first part above covers that.
 
 
Can you elucidate - in plain English - a little on what the error message means.
How is svn thinking that resulted in its putting it this way?
 
I think I got this error the first time I tried switch..
..but our svn server sometimes just doesn't respond to requests..
(an effect of its using WebDAV + HTTPS, I'm told)
 
..so I wonder if it might be the case that this all happened because I tried to switch after svn already thought I had switched; could that cause this error msg?
 
(It has been not at all obvious to me what branch I'm on, so this may very well have happened.)
 
 
  -- M.
 
 

________________________________

From: Hari Kodungallur [mailto:hkodungallur_at_gmail.com]
Sent: Sat 2009-01-31 17:34
To: Hutchins, P. Michael
Cc: users_at_subversion.tigris.org; Weader, Joshua B.
Subject: Re: "a versioned directory of the same name already exists" error on switch - or update

On Sat, Jan 31, 2009 at 10:26 AM, P. Michael Hutchins <pmh0232_at_draper.com> wrote:

        I'm a pretty new user of svn, but a long-time (42 years) s/w engineer.
        
        We're using a svn repos at another company, as part of a large project.
        
        Since we're behind a serious firewall, the svn server is using WebDAV +
        HTTPS.
        
        The repos is so large that it takes over an hour to check out.
        
        (I'm trying to supply anything that I can imagine that might be
        contributing to this problem.)
        
        Last week, we closed a dev ~branch~, and opened a bugfix one.
        
        When I tried to switch to the new one..
        (Tortoise, & then (Slik) svn switch <URL>)
        
        ..I got that error - for a particular folder.
        
        cleanup didn't help.
        
        I thought that the tried & true 2nd-layer technique of just deleting the
        offending folder & updating might work..
        
        ..but the update just gave me that error on another folder!
        
        (:
> Error: Failed to add directory 'C:\[...]\bin\tools': a
> versioned directory of the same name already exists
         )
        
        
        Why am I getting that, & what should I do?
        
        (BTW, the "solution" of doing a complete 'nother checkout gets old
        really quick.)
        

There could be several reasons for this.

- What is the difference between the dev branch and the bugfix branch, specifically relating to the offending directories? Were they added separately on either or both branches?
- Are there any difference in case for the directories in question? For example if there is a directory called 'Tools' in the bugfix branch and you have a local copy that is 'tools', then windows will treat them as the same.
- What is the ancestry of the two branches. I am not completely sure of the way switch works, but it is similar to update. If the two branches are very very different, you might end up taking similar amount of time as a checkout.

thanks,
-Hari

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1085395

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-02-01 14:52:22 CET

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