0

i am migrating a large CVS repository to SVN using Polarion SVNImporter. Due to its large size i got multiple dump files for a single repository, say dmp_part1, dmp_part2 etc. My requirement is to load these multiple dump files (which is actually part of a single repo) to svn server and want to create a single project . Can I use the following ?

$ svnadmin load /path/to/repo < dmp_part1, dmp_part2, dmp_part3

If I run the command for each dump, will it creates three different repos?

Please help on this.

Abhishek
  • 7
  • 6

2 Answers2

0
for dump in dmp_part1 dmp_part2 dmp_part3
do
    svnadmin load /path/to/repo < $dump
done

You could run a loop to pick each dump and add it to the same repository.

Libin Varghese
  • 1,506
  • 13
  • 19
  • I want to load these 3 dumps at a time and want to create a single repo. These dumps are part of a single project in CVS. – Abhishek Mar 17 '17 at 20:48
  • 1
    While this code snippet may solve the question, [including an explanation](http://meta.stackexchange.com/questions/114762/explaining-entirely-code-based-answers) really helps to improve the quality of your post. Remember that you are answering the question for readers in the future, and those people might not know the reasons for your code suggestion. – DimaSan Mar 18 '17 at 01:37
0

If I run the command for each dump, will it creates three different repos?

No. You should run the command multiple times to load the dumps one by one. SVNBook | Repository data migration using svnadmin provides an example.

bahrep
  • 29,961
  • 12
  • 103
  • 150