You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Chen锛锛? Jun锛锛? <ch...@hotmail.com> on 2006/09/06 11:42:33 UTC

SVN does not allow checking out parent dir if its child dir has been checked out

I'm using Subversion 1.3.0 (r17949) on Windows 2000 SP4. 

Assume that I have a repository at h:/temp/SvnReps/ChjTrivials , and the 
C:/ChjTrivials directory does not exist yet. 

Now, I issue the command: 
 
<pre>
C:\>svn co file:///h:/temp/SvnReps/ChjTrivials/trunk/ichsize 
ChjTrivials/ichsize 
</pre>

SVN outputs: 

<pre>
A    ChjTrivials\ichsize\ichsize.cpp 
A    ChjTrivials\ichsize\ichsize.dsp 
Checked out revision 4. 
</pre> 


The checkout is success, and I have what I want in C:/ChjTrivials/ichisze 

But, when I further issue the following command: 

<pre>
C:\>svn co file:///h:/temp/SvnReps/ChjTrivials/trunk ChjTrivials 
</pre> 

SVN outputs: 
 
<pre>
A    ChjTrivials\ComHwCtrl 
A    ChjTrivials\ComHwCtrl\ComHwCtrl.cpp 
A    ChjTrivials\ComHwCtrl\ComHwCtrl.dsp 
svn: Failed to add directory 'ChjTrivials\ichsize': object of the same name 

already exists 
</pre>

Why!!! For the second command, I just want to checkout the parent directory 

of what the first command had checked out, and it could not cause any local 

copy conflict if the second checkout is allowed. Why SVN prohibit that? 

Why this make me mad? I'm developing a GNUmake-featured make system that 
can automatically checkout the required source files(.cpp, .h etc) as 
instructed in my makefiles, and those makefiles are often written to 
checkout only part of a CVS or SVN repository(that part is enough for the 
current makefile to build a project). Back to the time I used CVS, checking 

out a child dir then its parent dir is not a problem, but when I upgrade my 

make system to support checkout from SVN these days, I found this anonying 
SVN behavior. 

Do you kind guys have the same experience as I and any solution to this? 

BTW: SVN 1.3.2 (r19776) exhibits the same behavior.

I first posted this problem on 
http://www.svnforum.org/2017/viewtopic.php?t=1480 when I was unable to 
subscribe to the svn official mailing lists. Please also vist that web page 

for more discussions already existed.

Later, I posted this question to user@subversion.tigris.org for two weeks, 
and have got only one response just confirming this SVN behavior, and I 
hope you kind Subversion developers take my opinion into account and make 
Subverion behave more reasonable.

Chen Jun

_________________________________________________________________
与联机的朋友进行交流,请使用 MSN Messenger:  http://messenger.msn.com/cn  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org