How do I migrate an SVN repository to another SVN repository?

前端 未结 9 988
小蘑菇
小蘑菇 2020-12-07 13:07

Is there a simple way to copy a directory from one repository into another repository with copying all of the history?

9条回答
  •  日久生厌
    2020-12-07 14:05

    As suggested in the Subversion book:

    svnadmin dump path/to/repos_src \
        | svndumpfilter include path/inside/svn/to/directory \
        | svnadmin load path/to/repos_dst
    

    With an example:

    svnadmin dump /var/lib/svn/old_repo \
        | svndumpfilter include trunk/my_project/common_dir \
        | svnadmin load /var/lib/svn/new_repo
    

提交回复
热议问题