tortoisesvn - Make a root-level directory in an SVN repository a subdirectory in a different repository -
i have 2 svn repositories, structured follows:
-repo1 --mydir ----...\\subdirectories , files. -repo2 --mydir ----mydir ------mydirgrandchild --------...\\subdirectories , files. the similarity in names "mydir" not incidental; directories named here "mydir" named same.
my task take mydir under repo1, , place (while maintaining history, revision numbers etc.) child of mydirgrandchild in repo2. note once copied have (grand , great grand) parents named same.
i don't know how approach this. solutions find online talk creating dump of repo1 , loading repo2, not need. in case root-level folder in repo1 become 1 of subfolders in repo2.
help appreciated.
svnadmin dump , svnadmin load right tools. if paths in repo1/ (full history) disjoint paths in repo1/.../mydirgrandchild/ (head revision), following steps should job:
svnadmin dump /path/to/repo1 > /tmp/repo1.dump svnadmin load --parent-dir mydir/mydir/mydirgrandchild /path/to/repo2 < /tmp/repo1.dump it paths not disjoint, should change paths in dump before loading repo2. see following links more information:
- is possible change dir name in repository svndumpfilter?
- https://metacpan.org/pod/distribution/svn-dumpreloc/bin/svn-dump-reloc
to minimize risk of data corruption, should test second step before running on real svn repository. means should first create exact copy of repo2. can use file system tools task (e.g. cp -a). don't forget check if there absolute paths hardcoded in hook scripts.
Comments
Post a Comment