简体   繁体   English

svnadmin dump-svn:修订文件缺少尾随换行符

[英]svnadmin dump - svn: Revision file lacks trailing newline

I'm trying to migrate one SVN repo to another server. 我正在尝试将一个SVN存储库迁移到另一台服务器。 When I try svnadmin dump It fails with: 当我尝试svnadmin dump时,它失败并显示:

svnadmin: E160004: Revision file (r66000) lacks trailing newline

The problem is that the dump fails on revision 66000 out of 110000, and I can't apply the following fix . 问题是转储在110000的修订版66000上失败,并且我无法应用以下修复程序

If you have any ideas how to migrate the repo to the new server I'll be very grateful. 如果您有任何将存储库迁移到新服务器的想法,我将不胜感激。

Thank you in advance. 先感谢您。

I've managed to find a working solution for me. 我设法为我找到了一个可行的解决方案。 Using "svndumpfilter include" I've dumped all the required folders from the old repo and load them to the new one successfully. 使用“ svndumpfilter include”,我已从旧存储库中转储了所有必需的文件夹,并将其成功加载到新的文件夹中。 Now the new repository has no broken revisions and can be dumped in order to backup. 现在,新存储库没有损坏的修订版本,可以将其转储以进行备份。 By this way you are loosing some files which have broken revisions, but I didn't needed them anyway. 通过这种方式,您可以丢失一些版本已损坏的文件,但是我还是不需要它们。

The other way is to tar the repo and extract it to the new SVN server. 另一种方法是将仓库打包,然后将其解压缩到新的SVN服务器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM