How can I fix the SVN import line endings error?

前端 未结 9 1825
名媛妹妹
名媛妹妹 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:44

    I used svnadmin load --normalize-props {myrepo} < {mydumpfile} and it worked perfectly.

    The --normalize-props switch was added to subversion 1.10. For details, refer to https://subversion.apache.org/docs/release-notes/1.10.html#normalize-props

    Reproducing for convenience -

    New --normalize-props option for svnadmin load

    A new --normalize-props option has been added to the svnadmin load command. This option can be used to automatically repair non-LF line endings in properties such as svn:log or svn:ignore. Such invalid line endings were accepted by older servers and can be found in repository dumps of older repositories, but are rejected by Subversion 1.6 and later.

    Calling svnadmin load with --normalize-props will automatically repair all invalid property line endings found in the dumpstream, thus ensuring that the appropriate values are loaded into the repository.

提交回复
热议问题