How to copy SVN repository as a folder to another repository with history

前端 未结 1 766
遇见更好的自我
遇见更好的自我 2021-01-06 16:43

I have 2 repositories

http://mysnv/svn/proj1/trunk
  • proj1_folder1
  • proj1_folder2

and

http://my         


        
1条回答
  •  不知归路
    2021-01-06 17:24

    Physical aggregation

    • Create dumps of needed paths from proj2 repository (svnadmin dump | svndumpfilter --include --include > dump or svnrdump URL-proj2_folder1 > dump1 & svnrdump URL-proj2_folder1 > dump2)
    • Load dump(s) into proj1 with changed parent folder (svnadmin load --parent-dir trunk < dump)
    • Check presence of proj2_folder1's and proj2_folder2's data under proj1/trunk/trunk (second trunk is base path in dump of repo1)
    • Rename child trunk-folder into proj2 (svn mv)

    Sample of loading svnrdump-ed trunk into new repo with parent dir trunk/Project1

    enter image description here

    Logical aggregation

    • Create proj1/trunk/proj2 folder
    • Create two svn:externals (directory-type) inside proj2: proj2_folder1 linked to proj2/trunk/proj2_folder1 and proj2_folder2 linked to proj2/trunk/proj2_folder2

    0 讨论(0)
提交回复
热议问题