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

好久不见. 提交于 2019-12-01 09:06:13
Lazy Badger

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

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
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!