Discussion:
svn export on several files
Frederik Minatchy
2008-08-12 12:15:20 UTC
Permalink
Hello...
 
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...
 
Does someone have any idea????
 
Best regards
 

Frederic


_____________________________________________________________________________
Envoyez avec Yahoo! Mail. Une boite mail plus intelligente http://mail.yahoo.fr
John Niven
2008-08-13 00:27:07 UTC
Permalink
From: Frederik Minatchy [mailto:***@yahoo.fr]
Sent: Wednesday, 13 August 2008 00:15
To: ***@subversion.tigris.org
Subject: svn export on several files


Hello...

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...

Does someone have any idea????


Hi Frederik

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.

Hope this helps
John


Best regards


Frederic


Envoyé avec Yahoo! Mail <http://us.rd.yahoo.com/mailuk/taglines/isp/control/*http://us.rd.yahoo.com/evt=52423/*http://fr.docs.yahoo.com/mail/overview/index.html> .
Une boite mail plus intelligente.
Ryan Schmidt
2008-08-13 01:55:18 UTC
Permalink
Post by John Niven
Post by Frederik Minatchy
I would like to export several files in one command line.
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
[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
Brad Stiles
2008-08-13 12:02:13 UTC
Permalink
Post by Ryan Schmidt
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
Since "svn export" works for single files (I use it all the time), is there some performance or other reason to use "svn cat" instead?

Brad
Ryan Schmidt
2008-08-13 19:56:41 UTC
Permalink
Post by Brad Stiles
Post by Ryan Schmidt
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
Since "svn export" works for single files (I use it all the time),
is there some performance or other reason to use "svn cat" instead?
svn export was intended for directories and svn cat was intended for
files. svn export works for files now too, but older versions of
Subversion did not allow svn export to be used with single files:

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

Therefore if you are concerned with portability to prior versions of
svn, you should use svn cat for files. If this is just for your own
personal use, or if you already require your users to have a
sufficiently recent version of svn, then svn export for files should
be fine.
Brad Stiles
2008-08-14 14:00:04 UTC
Permalink
Post by Ryan Schmidt
Therefore if you are concerned with portability to prior versions of
svn, you should use svn cat for files. If this is just for your own
personal use, or if you already require your users to have a
sufficiently recent version of svn, then svn export for files should
be fine.
OK, great. Thanks for the response.

Frederik Minatchy
2008-08-13 06:20:42 UTC
Permalink
But I have tried to export one single file... and it works....

Perhaps it is a new svn' s feature....

Thank you for your replies

--- En date de : Mer 13.8.08, Ryan Schmidt <subversion-***@ryandesign.com> a écrit :
De: Ryan Schmidt <subversion-***@ryandesign.com>
Objet: Re: svn export on several files
À: "John Niven" <***@bravurasolutions.com>, "Frederik Minatchy" <***@yahoo.fr>
Cc: ***@subversion.tigris.org
Date: Mercredi 13 Août 2008, 6h55
Post by John Niven
Post by Frederik Minatchy
I would like to export several files in one command line.
svn export "http://pipo/molo/toto.java
http://pipo/molo/moto.java
Post by John Niven
Post by Frederik Minatchy
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/
Post by John Niven
en/svn.ref.svn.c.export.html or "svn help export") "svn
export [-r
Post by John Niven
[PATH2]". Since you're using two paths you're usign the
second
Post by John Niven
form. This represents "export the directory *tree* at path1 to
path2", so that's why SVN isn't parsing your command. Also
note
Post by John Niven
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




_____________________________________________________________________________
Envoyez avec Yahoo! Mail. Une boite mail plus intelligente http://mail.yahoo.fr
John Niven
2008-08-13 21:59:51 UTC
Permalink
From: Frederik Minatchy [mailto:***@yahoo.fr]
Sent: Wednesday, 13 August 2008 18:21
To: John Niven; Ryan Schmidt
Cc: ***@subversion.tigris.org
Subject: Re: svn export on several files


But I have tried to export one single file... and it works....

I can confirm that - just tried exporting a single file and it worked just fine. That'll teach me to test before posting ;-)

Perhaps it is a new svn' s feature....

Quite possibly - I tried against a SVN 1.5 Beta repository.

Thank you for your replies

No worries, apologies for the inaccuracy.

Cheers
John


--- En date de : Mer 13.8.08, Ryan Schmidt <subversion-***@ryandesign.com> a écrit :


De: Ryan Schmidt <subversion-***@ryandesign.com>
Objet: Re: svn export on several files
À: "John Niven" <***@bravurasolutions.com>, "Frederik Minatchy" <***@yahoo.fr>
Cc: ***@subversion.tigris.org
Date: Mercredi 13 Août 2008, 6h55
Post by John Niven
Post by Frederik Minatchy
I would like to export several files in one command line.
I have tried something
svn export "http://pipo/molo/toto.java
http://pipo/molo/moto.java
Post by John Niven
Post by Frederik Minatchy
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/
Post by John Niven
en/svn.ref.svn.c.export.html or "svn help export") "svn
export [-r
Post by John Niven
[PATH2]". Since you're using two paths you're usign the
second
Post by John Niven
form. This represents "export the directory *tree* at path1 to
path2", so that's why SVN isn't parsing your command. Also
note
Post by John Niven
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





________________________________

Envoyé avec Yahoo! Mail <http://us.rd.yahoo.com/mailuk/taglines/isp/control/*http://us.rd.yahoo.com/evt=52423/*http://fr.docs.yahoo.com/mail/overview/index.html> .
Une boite mail plus intelligente.
Loading...