It's all about the answers!

Ask a question

Error "Missing parent of add" during svn dump impo


Christoph Redl (1611) | asked Aug 20 '09, 6:07 a.m.
I get the following error shown below when importing a SVN dumpfile into RTC Source Control.
Before that i had another error, described in another thread: http://jazz.net/forums/viewtopic.php?p=20892&sid=5c09b8277725342239f75eb590eecdef.
There is also a defect on this: https://jazz.net/jazz/web/projects/Rational%20Team%20Concert#action=com.ibm.team.workitem.viewWorkItem&id=89588.
I installed the patch provided there and now the first problem seems to be solved, but the SVN import fails with the following error:


!ENTRY org.eclipse.core.jobs 4 2 2009-08-20 09:32:26.109
!MESSAGE An internal error occurred during: "Import from SVN".
!STACK 0
java.lang.IllegalArgumentException: Revision 10465: Missing parent of add at tags/4.0 FP 2104/lati_war.
at com.ibm.team.scm.client.importz.svn.internal.SVNRevisionTree.updateForChange(SVNRevisionTree.java:306)
at com.ibm.team.scm.client.importz.svn.internal.SVNBranchValidator.handleRevision(SVNBranchValidator.java:73)
at com.ibm.team.scm.client.importz.svn.internal.SVNDumpProcessor.processCurrentRevision(SVNDumpProcessor.java:144)
at com.ibm.team.scm.client.importz.svn.internal.SVNDumpProcessor.handleProperties(SVNDumpProcessor.java:186)
at com.ibm.team.scm.client.importz.svn.internal.SVNDumpProcessor.readNode(SVNDumpProcessor.java:100)
at com.ibm.team.scm.client.importz.svn.internal.SVNDumpProcessor.read(SVNDumpProcessor.java:80)
at com.ibm.team.scm.client.importz.svn.internal.SVNDumpProcessor.read(SVNDumpProcessor.java:57)
at com.ibm.team.scm.client.importz.svn.internal.SVNDump2ArchiverConverter.calculateBranchAndTagBaselines(SVNDump2ArchiverConverter.java:142)
at com.ibm.team.scm.client.importz.svn.internal.SVNDump2ArchiverConverter.endRead(SVNDump2ArchiverConverter.java:117)
at com.ibm.team.scm.client.importz.svn.internal.SVNDumpProcessor.read(SVNDumpProcessor.java:58)
at com.ibm.team.scm.client.importz.svn.internal.SVNDump2ArchiverConverter.createArchive(SVNDump2ArchiverConverter.java:86)
at com.ibm.team.scm.client.importz.svn.internal.SVNDumpFileImporter.createChangeSetArchive(SVNDumpFileImporter.java:55)
at com.ibm.team.scm.client.importz.internal.CreateArchiveOperation.run(CreateArchiveOperation.java:32)
at com.ibm.team.scm.client.importz.internal.ui.ImportOperation.createArchive(ImportOperation.java:156)
at com.ibm.team.scm.client.importz.internal.ui.ImportOperation.filesystemRun(ImportOperation.java:119)
at com.ibm.team.filesystem.ui.operations.FileSystemUIOperation.repositoryRun(FileSystemUIOperation.java:43)
at com.ibm.team.repository.rcp.ui.operations.RepositoryOperation.run(RepositoryOperation.java:42)
at com.ibm.team.repository.rcp.ui.operations.JobRunner.run(JobRunner.java:205)
at com.ibm.team.repository.rcp.ui.operations.JobRunner$1.run(JobRunner.java:62)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)


Corresponding nodes in the svn dumpfile:

Revision-number: 10464
Prop-content-length: 137
Content-length: 137

K 7
svn:log
V 19
Removed file/folder
K 10
svn:author
V 22
xyz@at.ibm.com
K 8
svn:date
V 27
2007-04-24T06:11:06.046369Z
PROPS-END

Node-path: tags/4.0 FP 2104/lati_war
Node-action: delete


Revision-number: 10465
Prop-content-length: 129
Content-length: 129

K 7
svn:log
V 11
made a copy
K 10
svn:author
V 22
xyz@at.ibm.com
K 8
svn:date
V 27
2007-04-24T06:11:50.437320Z
PROPS-END

Node-path: tags/4.0 FP 2104/lati_war
Node-kind: dir
Node-action: add
Node-copyfrom-rev: 10464
Node-copyfrom-path: branch/4.0/lati_war


It seems that the error occurs in connection with the "node-copyfrom" tag of the dumpfile, but importing another dumpfile with a "node-copyfrom" tag succeded. So maybe the error is due to my particular dumpfile.
Any other suggestions?

Thanks in advance,
Christoph


Update:
It seems that the error is caused by a revision which deletes a node and a second revision, which recreates the previously deleted node.
See also: https://jazz.net/jazz/web/projects/Rational%20Team%20Concert#action=com.ibm.team.workitem.viewWorkItem&id=89588

Be the first one to answer this question!


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.