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

bug when wc-wc copy directory to itself

From: Ivan Zhakov <chemodax_at_gmail.com>
Date: 2006-10-08 00:07:25 CEST

I'm just found bug, so first of I post it here in order to don't forget it.
On Windows, using Subversion 1.4.0
Recipe is clear:

rd /q /s db
rd /q /s wc

svnadmin create db
svn co file:///c:/tmp/db wc
mkdir wc\dir1
mkdir wc\dir1\dir2
svn add wc\dir1
svn ci -m "Revision 1" wc
svn cp wc/dir1 wc/dir1
svn cp wc/dir1 c:\tmp\wc\dir1

And you'll get:
C:\tmp>svn cp wc/dir1 wc/dir1
svn: Cannot copy path 'wc\dir1' into its own child 'wc\dir1\dir1'

C:\tmp>svn cp wc/dir1 c:\tmp\wc\dir1
svn: Can't create directory
'C:\tmp\wc\dir1\dir1\dir1\dir1\dir1\dir1\dir1\dir1\dir1\dir1\dir1\dir1\d
ir1\dir1\dir1\dir1\dir1\dir1\dir1\dir1\dir1\dir1\dir1\dir1\dir1\dir1\dir1\dir1\dir1\dir1\dir1\dir1\d
ir1\dir1\dir1\dir1\dir1\dir1\dir1\dir1\dir1\dir1\dir1\dir1\.svn\tmp\prop-base':
The filename or exte
nsion is too long.

So it seems Subversion checks child by path instead of URL.

-- 
Ivan Zhakov
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Oct 8 00:07:38 2006

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

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