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

Re: Copying multiple paths in the repo with one command line.

From: Raman Gupta <rocketraman_at_fastmail.fm>
Date: 2005-08-15 23:48:27 CEST

Johan Appelgren wrote:
> On 8/15/05, Brass Tilde <brasstilde@insightbb.com> wrote:
>> I apologize if this is in the book; none of my searches revealed
>> anything in the book or in the list archive.
>> Is there any way to have Subversion copy multiple directories
>> within the repository into a single directory using a single svn
>> command invocation?
>> [...]
>> Now, I realize that with a checkout of the "/Release 1.0" branch
>> directory, I can "svn copy" each of those individual apps into the
>> working copy, then commit that as one revision (at least, I
>> presume so from reading the docs; I haven't actually tried it).
>> However, that uses up a fair bit of disk space and time with these
>> apps.

Do you really care whether it is a single command invocation, or do you
just want to avoid using your working copy? If the latter, then no
working copy is necessary. If I undertand what you want to do, you
can just operate on the repository directly by using an "svn mkdir URL"
and then multiple "svn cp fromURL toURL" commands to achieve your target

> I haven't actually used this myself but maybe you could use rsvn
> <https://opensvn.csie.org/traccgi/rsvn/trac.cgi/wiki>.

If you want all of the above operations to be part of a single commit
(is this what you really meant by "single command invocation"?),
then rsvn referenced above is what you want. Get the version that I
attached at the bottom of the wiki page -- I made some small
modifications to it that makes it work better for me, though of course YMMV.

Raman Gupta

Received on Mon Aug 15 23:50:31 2005

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.