You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Tech Geek <te...@gmail.com> on 2010/10/02 02:06:25 UTC

dumping non-continuous ranges using svnadmin dump

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?

Thanks.

Re: dumping non-continuous ranges using svnadmin dump

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Oct 5, 2010, at 11:06, Tech Geek wrote:

>> 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
> 
> Tried but does not work...
> 
> # svnadmin load sandbox-restore < sandbox-dumpfile
> The above command restored it up to 15 revision as expected:
> <snip>
> <<< Started new transaction, based on original revision 15
>      * editing path : PartA/trunk/source/README.txt ... done.
> 
> ------- Committed revision 15 >>>
> </snip>
> 
> and then the following command:
> # svnadmin load sandbox-restore < sandbox-dump2
> 
> gave the error message:
> 
> <snip>
> <<< Started new transaction, based on original revision 18
> svnadmin: File already exists: filesystem 'sandbox-restore/db', transaction '18-a', path 'PartA'
>      * adding path : PartA ...
> </snip>
> 
> The first method also ended up with the same error message.

Investigate svnadmin dump's --incremental and/or --deltas flags.


Re: dumping non-continuous ranges using svnadmin dump

Posted by Tech Geek <te...@gmail.com>.
>
> 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

Tried but does not work...

# svnadmin load sandbox-restore < sandbox-dumpfile
The above command restored it up to 15 revision as expected:
<snip>
<<< Started new transaction, based on original revision 15
     * editing path : PartA/trunk/source/README.txt ... done.

------- Committed revision 15 >>>
</snip>

and then the following command:
# svnadmin load sandbox-restore < sandbox-dump2

gave the error message:

<snip>
<<< Started new transaction, based on original revision 18
svnadmin: File already exists: filesystem 'sandbox-restore/db', transaction
'18-a', path 'PartA'
     * adding path : PartA ...
</snip>

The first method also ended up with the same error message.

Any more ideas?

Thanks.

Re: dumping non-continuous ranges using svnadmin dump

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