skip corrupted revision files with svn dump

346 views
Skip to first unread message

黑子文教

unread,
Dec 16, 2020, 11:14:53 PM12/16/20
to TortoiseSVN
I had my computer crushed and retrieve files under \db\revprops\ and \db\revs\, try to skip some missing revisions as bellow:

svnadmin dump -r 1572:1878 --incremental C:\codes\old_svn\repository > C:\codes\old_svn\repos-dumpfile
svnadmin: E160006: No such revision 1570

svnadmin dump -r 1573:1878 --incremental C:\codes\old_svn\repository > C:\codes\old_svn\repos-dumpfile
svnadmin: E160006: No such revision 1570

then i try this:
svnrdump dump -r 1870:1878 --incremental C:\codes\old_svn\repository > C:\codes\old_svn\repos-dumpfile
svnrdump: E160006: No such revision 1536

that must be have some corrupted revisions. Does there any way to rescue the correct files into a healthy repository?


Stefan

unread,
Dec 17, 2020, 1:09:44 PM12/17/20
to TortoiseSVN
you should ask on the subversion users list about such repo problems:

Tobias Knauss

unread,
Dec 18, 2020, 1:44:38 AM12/18/20
to TortoiseSVN
I am not a developer, neither of TortoiseSVN, nor of SVN library. But I once were in a similar situation, not as severe as your's though.
However, I managed to repair my repo dump, see https://stackoverflow.com/a/46904651
The files you mention are plain text files, so you might be able to fix them as well. Take a backup of all existing data, then start manipulating... I think you should be able to find out the meaning of the vaious sections in those files based from the changes you made and the log messages you entered. And you may create a new, file-based repo to experiment with the contents of these files to help you finding out what each section means and does.
I can't give you any more details right now, because I don't have any specification of the content of these files, and my repair operation has been some time ago.

黑子文教

unread,
Dec 20, 2020, 10:56:29 PM12/20/20
to TortoiseSVN on behalf of Tobias Knauss
I have to rescue data from original svn repository db files.
But didn't figure out the file layout, which full of something like:

--- file 1571 ---
DELTA 1558 23 445
SVN

id: 5-1571.0.r1571/82
type: file
count: 0
text: 1516 5 650 633 5cdfa0ccaca91d719e03c1682d7a0e25
e978c715ae8c17113cdf1ebfc0201428ebf6dcb3 1570-17x/_2s
props: 2 936 65 53 113136892f2137aa0116093a524ade0b
a0284943f8ddfe69ceec90833e66d96bdf4a97f0 1570-17x/_3e

--- file end ---
??: 84763 4100cd7c33850d85660e2d94be90e1e7 85253
4fae2cf14498d1e591ebc43102fc986dM

File 1571 reference to 1570.
How can i ignore the missing files to restore data in 1571 into dump?


Tobias Knauss über TortoiseSVN <torto...@googlegroups.com> 於
2020年12月18日 週五 下午2:44寫道:
> --
> You received this message because you are subscribed to the Google Groups "TortoiseSVN" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to tortoisesvn...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/tortoisesvn/b88d1536-6602-4699-9231-739f3a196b32n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages