You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by M Yazdi <my...@yahoo.com> on 2020/01/21 16:54:13 UTC

Want to remove corrupt revisions on SVN

Want to remove corrupt revisions on SVN. Try to dump revisions from 1-5133 after that 5847 to head but when I want to import dump file into the new repo below error appear!
svnadmin create /svn/newrepo
svnadmin dump -r1:5132 /svn/oldrepo > /tmp/dumpfile
svnadmin dump --incremental -r5847:HEAD /svn/oldrepo >> /tmp/dumpfile
svnadmin load /svn/newrepo < /tmp/dumpfile
<<< Started new transaction, based on original revision 5850 * editing path : branches/15 ...svnadmin: E160013: File not found: transaction '5134-3ym', path '/branches/15'
Any recommendation?


Re: Want to remove corrupt revisions on SVN

Posted by Andreas Stieger <An...@gmx.de>.
On 1/21/20 8:39 PM, M Yazdi wrote:
> On Jan 21, 2020, at 22:22, Andreas Stieger <An...@gmx.de> wrote:
>> On 1/21/20 5:54 PM, M Yazdi wrote:
>>> svnadmin create /svn/newrepo
>>>
>>> svnadmin dump -r1:5132 /svn/oldrepo > /tmp/dumpfile
>>> svnadmin dump --incremental -r5847:HEAD /svn/oldrepo >> /tmp/dumpfile
>>> svnadmin load /svn/newrepo < /tmp/dumpfile
>>>
>>> <<< Started new transaction, based on original revision 5850 *
>>> editing path : branches/15 ...svnadmin: E160013: File not found:
>>> transaction '5134-3ym', path '/branches/15'
>>>
>>
>> You are dumping and importing non-continuous revision ranges, where
>> the second one is incremental. One of the revisions (r5850) attempts
>> to modify a path that is not known to the repository. It was
>> originally created in one of the revisions you left out.
>>
>> Look into svndumpfilter,
>>

> What do you suggest? Would you please modify my command, I try
> different way but it give me same error!
> I just Want to remove revision 5132 to 5847.


Please keep your replies on the mailing list for public follow-ups.

In short, you cannot remove these revisions and then attempt to load
subsequent revisions (r5850 and certainly others) that modify something
that you just filtered out.

What is "corrupt" about these revisions in the first place?


Andreas



Re: Want to remove corrupt revisions on SVN

Posted by Andreas Stieger <An...@gmx.de>.
Hi,

On 1/21/20 5:54 PM, M Yazdi wrote:
> svnadmin create /svn/newrepo
>
> svnadmin dump -r1:5132 /svn/oldrepo > /tmp/dumpfile
> svnadmin dump --incremental -r5847:HEAD /svn/oldrepo >> /tmp/dumpfile
> svnadmin load /svn/newrepo < /tmp/dumpfile
>
> <<< Started new transaction, based on original revision 5850 * editing
> path : branches/15 ...svnadmin: E160013: File not found: transaction
> '5134-3ym', path '/branches/15'
>


You are dumping and importing non-continuous revision ranges, where the
second one is incremental. One of the revisions (r5850) attempts to
modify a path that is not known to the repository. It was originally
created in one of the revisions you left out.

Look into svndumpfilter,


Andreas