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

SVN Copy when directory exists

From: Daniel Becroft <Daniel.Becroft_at_supercorp.com.au>
Date: 2007-11-13 09:36:33 CET

Hi All,
We have just come across an interesting problem with the 'svn copy' command when attempting to branch from the trunk for a new repository. I had done it numerous times with no problems.
In the instance where I do an 'svn copy trunk branches/branch_name' where the 'branch_name' directory does not exist, then everything works fine. However, if the 'branch_name' directory does exist, a 'trunk' directory will be created under it, and then the contents will appear.
> svn copy trunk branches/branch_name
        A branches\branch_name
> svn copy trunk branches/directory_exists
        A branches\directory_exists\trunk
The result does not change if I commit before/after the directory is created.
I couldn't find this documented anywhere in the Redbean Subversion book, so am not sure if this is a defect, or whether this is functioning as designed. If the latter, could someone possible provide some insight as to why? It seems to be different to how the copy commands behave on both *nix and Windows.
Daniel B.
Received on Tue Nov 13 09:38:48 2007

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.