问题
I'm trying to use dump files to migrate a repository (with history intact) on a system running svn version 1.2.3 to one running 1.7.1. Since the original repository is such an early version, using svnrdump directly is not an option. I used svnadmin dump and then moved the (8 GB) dump file to the 1.7.1 system. However, when I use the svnrdump load command from there, after 231 revisions, I get the following error
svnrdump: E125005: Cannot accept non-LF line endings in 'svn:ignore' property
I've tried removing the svn:ignore property from revision 231 to no avail, as well as multiple third-party applications like svn2svn (we use authentication, so no dice). and svndumptool eolfix/svndumptool copy (only works on .txt files, apparently).
Originally I was getting a similar error after 11 revisions on the 'svn:log' revprop which I fixed by running dos2unix (broke it even more) and then using a script/manually fixing each file that svnadmin dump failed on.
I have admin access to both repos/root access to both systems (unix, not sure what distro). This is an old, currently believed to be unused repository that we want to save just in case some of the projects are needed again. Also, the way the new repositories are laid out using svnadmin load is very complicated. Is there an easy fix for the svn:ignore error? Or an easier way to move the whole thing?
Thanks
回答1:
You should use:
svndumptool eolfix-prop svn:ignore
instead of:
svndumptool eolfix
来源:https://stackoverflow.com/questions/11638380/svn-non-lf-line-ending-problems-with-svnignore-on-dump-load