Problem importing a Perforce/SVN data dump
![](http://jazz.net/_images/myphoto/34f25887a6f862a8f4052ae2f38576ea.jpg)
We are in the process of migrating from Perforce to RTC. Part of this process involves exporting the data from Perforce (using p42svn.pl) into a SVN dump format (this is so we can maintain the data change history which is required). We currently have the need to export/import data on one weekend, and then export/import the delta's at a later date. When I try to do this, I get two results:
- I export the entire data structure from Perforce, including the deltas. When prompted, I instruct the import to start importing after revision #X (X=the last revision I imported to RTC). The import then processes starting from revision #1, and fails with the following message:
Problems occurred running import from svn.
Reason
An error occurred importing "Revision 1: (1/16/12 8:51 AM) New test area':
Parent has multiple children with the name 'pt_br'.
(pt_br is one of our top level folders)
- I export ONLY the deltas from Perforce. Doing this could only export the data files, and not the directory structure as well. When I get to the import screen entitled "Choose SVN Folders to Import", I do not see any folders listed, and therefor the "Next" and "Finish" buttons are not available.
Does anyone have any experience in importing deltas? Do I have other options on how this could be accomplished?
- I export the entire data structure from Perforce, including the deltas. When prompted, I instruct the import to start importing after revision #X (X=the last revision I imported to RTC). The import then processes starting from revision #1, and fails with the following message:
Problems occurred running import from svn.
Reason
An error occurred importing "Revision 1: (1/16/12 8:51 AM) New test area':
Parent has multiple children with the name 'pt_br'.
(pt_br is one of our top level folders)
- I export ONLY the deltas from Perforce. Doing this could only export the data files, and not the directory structure as well. When I get to the import screen entitled "Choose SVN Folders to Import", I do not see any folders listed, and therefor the "Next" and "Finish" buttons are not available.
Does anyone have any experience in importing deltas? Do I have other options on how this could be accomplished?
5 answers
![](http://jazz.net/_images/myphoto/34f25887a6f862a8f4052ae2f38576ea.jpg)
I'm seeing the same error on an import from Subversion, so I don't think it's specifically a Perforce problem.
![](http://jazz.net/_images/myphoto/34f25887a6f862a8f4052ae2f38576ea.jpg)
We did eventually get around this error.
We stopped using the p42svn.pl script and created our own java process, and continued to see this error when importing delta dumps (data that was checked into Perforce AFTER our intial dump creation). To address this, we have used the following option during the import wizard "Reconcile any overlap between existing and imported files and folders." This option is on the same screen where you can set the name for the baseline, and the starting/ending revision numbers. When using this option, we don't get an error. Once the import was complete, we have done a file by file comparison and found everything is the same.
We stopped using the p42svn.pl script and created our own java process, and continued to see this error when importing delta dumps (data that was checked into Perforce AFTER our intial dump creation). To address this, we have used the following option during the import wizard "Reconcile any overlap between existing and imported files and folders." This option is on the same screen where you can set the name for the baseline, and the starting/ending revision numbers. When using this option, we don't get an error. Once the import was complete, we have done a file by file comparison and found everything is the same.
![](http://jazz.net/_images/myphoto/34f25887a6f862a8f4052ae2f38576ea.jpg)
Thanks for following up. In our case, the fundamental problem is that the migration tool isn't creating baselines in RTC that map to the branch creation points in RTC. We saw the error above when trying to import a branch into a stream containing the baseline that marks where the trunk was imported, which doesn't really make sense
Finding a way to create those baselines is a different problem...
Finding a way to create those baselines is a different problem...