Cannot load partial dump

2016-03-11 Thread Victor Sudakov
Dear Colleagues,

I need to export one file's history to another repository. Here is
what I do and what error I get:

$ svnadmin dump repos/configs |\
svndumpfilter --drop-empty-revs include /cisco/trunk/caracal-confg \
> tmp/test1.svn
[copious output deleted]

$ svnadmin create test2
$ svnadmin load test2 < tmp/test1.svn
<<< Started new transaction, based on original revision 540
 * editing path : cisco/trunk/caracal-confg ...svnadmin: E160013:
 * File not found: transaction '0-0', path
 * '/cisco/trunk/caracal-confg'

What am I doing wrong?

If I dump/load the complete repository (without svndumpfilter), the
operation is successful. But I don't need all the files from the old
repository.

Any advice is greatly appreciated.

-- 
Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
sip:suda...@sibptus.tomsk.ru


Re: Cannot load partial dump

2016-03-11 Thread Daniel Shahaf
Victor Sudakov wrote on Fri, Mar 11, 2016 at 22:33:32 +0600:
> $ svnadmin dump repos/configs |\
> svndumpfilter --drop-empty-revs include /cisco/trunk/caracal-confg \
> > tmp/test1.svn
> [copious output deleted]
> 
> $ svnadmin create test2

Run 'svn mkdir --parents file://$(pwd)/test2/cisco/trunk' at this point.

> $ svnadmin load test2 < tmp/test1.svn