You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Brandon Humphrey <bh...@divxcorp.com> on 2006/06/24 19:37:08 UTC

svn export PATH1 [PATH2] ignores externals

Hello all,

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)

Thanks,
Brandon

Re: svn export PATH1 [PATH2] ignores externals

Posted by Ryan Schmidt <su...@ryandesign.com>.
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