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

Re: svn export on several files

From: Ryan Schmidt <subversion-2008c_at_ryandesign.com>
Date: Tue, 12 Aug 2008 20:55:18 -0500

On Aug 12, 2008, at 19:27, John Niven wrote:

> Frederik Minatchy wrote:
>> I would like to export several files in one command line.
>> I have tried something like :
>> svn export "http://pipo/molo/toto.java http://pipo/molo/moto.java
>> http://pipo/molo/molo.java"
>> but I am said that there is a parsing error...
> The format for "svn export" is (http://svnbook.red-bean.com/nightly/
> en/svn.ref.svn.c.export.html or "svn help export") "svn export [-r
> REV] URL[@PEGREV] [PATH]" or "svn export [-r REV] PATH1[@PEGREV]
> [PATH2]". Since you're using two paths you're usign the second
> form. This represents "export the directory *tree* at path1 to
> path2", so that's why SVN isn't parsing your command. Also note
> that export works on directory *trees*, not files.

Right, "svn export" is for exporting entire directories. If you want
to see the contents of a file, use "svn cat". If you want multiple
files, issue "svn cat" multiple times. Like this:

svn cat http://pipo/molo/toto.java > toto.java
svn cat http://pipo/molo/moto.java > moto.java
svn cat http://pipo/molo/molo.java > molo.java

To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-08-13 03:56:00 CEST

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.