Re: Want to remove corrupt revisions on SVN

2020-01-21 Thread Andreas Stieger



On 1/21/20 8:39 PM, M Yazdi wrote:

On Jan 21, 2020, at 22:22, Andreas Stieger  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

2020-01-21 Thread Andreas Stieger

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