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

Re: dumping non-continuous ranges using svnadmin dump

From: Ryan Schmidt <subversion-2010d_at_ryandesign.com>
Date: Sat, 2 Oct 2010 00:20:51 -0500

On Oct 1, 2010, at 21:06, Tech Geek wrote:

> I have a repository called "sandbox" whose HEAD is at revision 20. I would like to dump revisions 1 to15 and then from 18 to19. Basically I want to skip revision 16,17 and 20.
> The command:
>
> # svnadmin dump -r 1:15 -r 18:19 sandbox > sanbox-dumpfile
>
> gives error message:
> svnadmin: Multiple revision arguments encountered; try '-r N:M' instead of '-r N -r M'
> and the command:
> #svnadmin dump -r 1:15,18:19 sandbox > sanbox-dumpfile
>
> gives error message:
> svnadmin: Syntax error in revision argument '1:15,18:19'
> How can I do this?

Yeah, I don't think you can specify multiple revision ranges like that. How about:

svnadmin dump -r 1:15 sandbox > sandbox-dumpfile
svnadmin dump -r 18:19 sandbox >> sandbox-dumpfile

I'm not sure if that yields a legal dumpfile. If not, try:

svnadmin dump -r 1:15 sandbox > sandbox-dumpfile
svnadmin dump -r 18:19 sandbox > sandbox-dumpfile2

Then when it comes time to load, load the first file, then the second.
Received on 2010-10-02 07:21:36 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.