How can I fix the SVN import line endings error?

前端 未结 9 1841
名媛妹妹
名媛妹妹 2021-02-05 22:25

I have to import an huge SVN repository that I have to transfer from one server to another. So I exported it from the old server:

svnadmin dump . > archive.sv         


        
9条回答
  •  一向
    一向 (楼主)
    2021-02-05 22:54

    I just repaired a svn dump file successfully. It also had a CRLF in the properties, which caused an Exception in SVN Edge dump import (they have a really bad import routine). Then I "installed" svnserve for testing, which was much easier than expected (instructions for Windows OS):

    1. download and install TortoiseSVN or another software that includes svn command line tools. I already had it installed
    2. start cmd.exe, run svnserve -d. This cmd window is busy now.
    3. start another cmd.execreate a repo: svnadmin create d:\svn_repos\test12
    4. load the dump into the repo: svnadmin load d:\svn_repos\test12 < d:\temp\svn\backup_test.dump

    svnserve will give you detailed info what failed.

    And here's what you have to repair (original on left, repaired on right side):

提交回复
热议问题