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

RE: svncopy adds extra level of directory hierarchy

From: Ian Brockbank <Ian.Brockbank_at_wolfsonmicro.com>
Date: 2005-12-30 12:52:35 CET

Hi Phil,
 
er, it's a feature. Because the script has to munge the svn:externals definitions it has to have a working copy to work in before checking in, hence the reason for the extra top-level directory (at least, I think that was the problem - it's a while since I looked at it). I spent a couple of hours trying to get the classic behaviour, but it wasn't something we needed, so I gave up.
 
Feel free to have a go at fixing it...
 
Cheers,
 
Ian Brockbank
Applications Software Team Leader
e: ian.brockbank@wolfsonmicro.com / apps@wolfsonmicro.com
scd: ian@scottishdance.net
t: +44 131 272 7145
f: +44 131 272 7001

________________________________

From: Phil Endecott [mailto:spam_from_subversion_users@chezphil.org]
Sent: Wed 28/12/2005 21:28
To: Subversion Users
Subject: svncopy adds extra level of directory hierarchy

Dear All,

Using this command:

        svncopy -t http://svn.example.com/myproject/trunk \
        http://svn.example.com/myproject/tags/1.1.8

I had hoped to find that tags/1.1.8 would contain a copy of the project,
but instead it contains a directory called "trunk", which in turn
contains a copy of the project.

I had expected to get the usual behaviour of the cp command, i.e.

- If the destination directory exists, a new directory is created inside
it with the name of the leaf of the source directory.

- If the destination directory does not exist, it is created and the
contents of the source directory are copied into it.

Is this a bug or a feature? (I don't know if this is unique to svncopy
or whether "svn cp" has the same behaviour.) Can anyone suggest a
workaround?

Cheers,

--Phil.

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

________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs Email
Security System.
________________________________________________________________________
Received on Fri Dec 30 12:58:39 2005

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