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

Re: svn export PATH1 [PATH2] ignores externals

From: Ryan Schmidt <subversion-2006q2_at_ryandesign.com>
Date: 2006-06-24 22:47:50 CEST

On Jun 24, 2006, at 21:37, Brandon Humphrey wrote:

> I'm using the subversion export command to copy files from a versioned
> working copy to an unversioned working copy. But it is not copying
> over
> the files that were checked out via external definitions
> (svn:externals).
>
> The behavior is different if I run the subversion export command
> against
> a URL instead of a working copy. In that case the externals are
> copied
> into the unversioned copy.
>
> Is there a way for me to force the externals to be copied over when
> using 'svn export PATH1 [PATH2]'?
>
> Configuration:
> Client:
> - Windows XP
> - svn, version 1.3.2 (r19776)
> Server:
> - Debian Linux
> - svn, version 1.2.3 (r15833)

Yes, we discovered that too after upgrading to Subversion 1.2.3. We
have a script which exports from a working copy, and it suddenly
stopped working for externals. It worked fine in 1.1.x. It's this
bug, which does not seem to have had any work done on it yet:

        http://subversion.tigris.org/issues/show_bug.cgi?id=2429

To get it working again, we replaced this line in our script:

        svn --quiet export FROMPATH TOPATH

with this line:

        cd FROMPATH && rsync --archive --cvs-exclude . TOPATH

This is not exactly the same, because the rsync command keeps the
original dates and times while the export command would have used the
current date and time. I'm sure there's an rsync switch for that, it
just hasn't been important enough for me to look into. The --cvs-
exclude switch excludes not only CVS directories but also .svn
directories, which is its purpose here.

We use this script on Gentoo Linux. Hopefully rsync or an equivalent
solution is also available for Windows.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat Jun 24 22:49:02 2006

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.