starteam to svn - unknown branch exception

gpakosz
Posts: 5
Joined: Thu Dec 18, 2008 12:15 pm

starteam to svn - unknown branch exception

Postby gpakosz » Thu Dec 18, 2008 12:36 pm

Hello

I am trying to import a project from Starteam which has the following layout:
Project Name == "Foo Bar" (there is a space in the name) with the following view layout:

Code: Select all

Starteam Server (Starteam 5.3)
  Foo Bar (project)
    Foo Bar ("master" view)
      user 1 (reference view)
      user 2 (reference view)
      ...

I set the following configuraton options:

Code: Select all

use_file_copy=yes (should not be relevant for Starteam as per the configuration file comments)

trunk_path=trunk
branch_path=branches
tags_paths=tags
svnimporter_user_name=starteam
only_trunk=no

svnadmin.executable=svnadmin.exe
svnadmin.repository_path=C:/tmp/dump
svnadmin.parent_dir=.
svnadmin.tempdir=C:/tmp
svnclient.executable=svn.exe
svnadmin.verbose_exec=yes

svnadmin.path_not_exist_signature=non-existent in that revision

...

st.url=user:passwd@192.168.0.20:49201/Foo Bar/Foo Bar
st.tempdir=C:/tmp/importer

And here is the last entry in the log:

Code: Select all

10:58:40,811 [main]  INFO historyLogger:84 - EXCEPTION CAUGHT: org.polarion.svnimporter.svnprovider.SvnException: Unknown branch: Foo Bar
   at org.polarion.svnimporter.svnprovider.SvnModel.getBranch(SvnModel.java:209)
   at org.polarion.svnimporter.svnprovider.SvnModel.addFileCopyToTag(SvnModel.java:336)
   at org.polarion.svnimporter.stprovider.internal.STTransform.transformCommit(STTransform.java:139)
   at org.polarion.svnimporter.stprovider.internal.STTransform.transform(STTransform.java:86)
   at org.polarion.svnimporter.stprovider.STProvider.buildSvnModel(STProvider.java:128)
   at org.polarion.svnimporter.main.Main.buildFullSvnModel(Main.java:147)
   at org.polarion.svnimporter.main.Main.run(Main.java:82)
   at org.polarion.svnimporter.main.Main.main(Main.java:49)


Does someone please know what's going wrong?
I am using svn-importer-1.1-SHAPSHOT-(after-M8) from 1 Februrary 2008 downloaded from the following page http://www.polarion.org/projects/svnimp ... d/nightly/
Thanks in advance,
Gregory

gpakosz
Posts: 5
Joined: Thu Dec 18, 2008 12:15 pm

Re: starteam to svn - unknown branch exception

Postby gpakosz » Tue Jan 27, 2009 2:11 pm

bumping, any hint please?
i'm still facing the problem, i wonder if it could be caused by the space characters in the project name and views names

Landis
Posts: 1
Joined: Thu Jan 27, 2011 3:41 pm

Re: starteam to svn - unknown branch exception

Postby Landis » Thu Jan 27, 2011 3:44 pm

I have seen this on some but not all of my StarTeam projects. When I see it I change to use_file_copy=no.

Hope this helps.

kencorbin
Posts: 197
Joined: Fri Nov 16, 2007 10:30 pm
Location: Corvallis, OR

Re: starteam to svn - unknown branch exception

Postby kencorbin » Thu Feb 10, 2011 2:43 am

I think I tracked this down. The only way it can happen is if a name has been assigned to the trunk development path, probably something that only the starteam provider does. A revision on the main path with child labels will crash unless
The trunk only option is set, or
The ignore labels option is set, or
The file copy option is not set.

It would not recommend resetting the file copy option to get around this problem, you get a rather poor result if you do.

I build a version of svnimporter that (I hope) will fix this. You can get it by checking it out of the subversion repository, or wait until I get the webmaster to put it in the download section.

jasonw401
Posts: 2
Joined: Mon Aug 01, 2011 5:45 am

Re: starteam to svn - unknown branch exception

Postby jasonw401 » Mon Aug 01, 2011 5:51 am

Hi Ken,

Could you please tell me if this issue has been fixed in version 1.2? I am trying to import a StarTeam project into SVN. I got the following error when a file is attached a label on StarTeam.

15:39:23,768 [main] INFO historyLogger:84 - date: 01/08/2011 3:39:23 PM
15:39:23,768 [main] INFO historyLogger:84 - mode: create full dump
15:39:23,768 [main] INFO historyLogger:84 - src provider: class org.polarion.svnimporter.stprovider.STProvider
15:39:23,768 [main] INFO historyLogger:84 - creating full svn model...
15:39:24,766 [main] DEBUG STHistoryParser:80 - Recorded revision: Interstage v10/Interstage v10/110_SVN_Migration_Test/docs/JavaEE_Operators_Guide_Proposal.doc 1.2
15:39:24,766 [main] DEBUG STHistoryParser:80 - Recorded revision: Interstage v10/Interstage v10/110_SVN_Migration_Test/docs/JavaEE_Operators_Guide_Proposal.doc 1.1
15:39:24,782 [main] DEBUG STHistoryParser:80 - Recorded revision: Interstage v10/Interstage v10/110_SVN_Migration_Test/docs/JavaEE_Operators_Guide_Proposal.doc 1.0
15:39:24,782 [main] INFO STCommitsCollection:84 - Validating commits...
15:39:24,782 [main] INFO STProvider:84 - StarTeam model has been created.
15:39:24,782 [main] INFO Model:84 - Summary:
15:39:24,782 [main] INFO Model:84 - Files: 1
15:39:24,782 [main] INFO Model:84 - Revisions: 3
15:39:24,782 [main] INFO Model:84 - Commits: 3
15:39:24,938 [main] DEBUG SvnModel:80 - create new revision 1
15:39:24,954 [main] DEBUG SvnModel:80 - add action: [add dir] trunk
15:39:24,954 [main] DEBUG SvnModel:80 - add action: [add dir] branches
15:39:24,954 [main] DEBUG SvnModel:80 - add action: [add dir] tags
15:39:24,954 [main] DEBUG SvnModel:80 - create new revision 2
15:39:24,969 [main] DEBUG SvnModel:80 - add action: [add dir] trunk/Interstage v10
15:39:24,969 [main] DEBUG SvnModel:80 - add action: [add dir] trunk/Interstage v10/110_SVN_Migration_Test
15:39:24,969 [main] DEBUG SvnModel:80 - add action: [add dir] trunk/Interstage v10/110_SVN_Migration_Test/docs
15:39:24,969 [main] DEBUG SvnModel:80 - add action: [add file] trunk/Interstage v10/110_SVN_Migration_Test/docs/JavaEE_Operators_Guide_Proposal.doc
15:39:24,969 [main] DEBUG SvnModel:80 - create new revision 3
15:39:24,969 [main] DEBUG SvnModel:80 - create tag label_v_0_1
15:39:24,985 [main] DEBUG SvnModel:80 - add action: [add dir] tags/label_v_0_1
15:39:24,985 [main] DEBUG SvnModel:80 - add action: [add dir] tags/label_v_0_1/Interstage v10
15:39:24,985 [main] DEBUG SvnModel:80 - add action: [add dir] tags/label_v_0_1/Interstage v10/110_SVN_Migration_Test
15:39:24,985 [main] DEBUG SvnModel:80 - add action: [add dir] tags/label_v_0_1/Interstage v10/110_SVN_Migration_Test/docs
15:39:24,985 [main] ERROR Main:96 - EXCEPTION CAUGHT: org.polarion.svnimporter.svnprovider.SvnException: Unknown branch: Interstage v10
at org.polarion.svnimporter.svnprovider.SvnModel.getBranch(SvnModel.java:209)
at org.polarion.svnimporter.svnprovider.SvnModel.addFileCopyToTag(SvnModel.java:337)
at org.polarion.svnimporter.stprovider.internal.STTransform.transformCommit(STTransform.java:139)
at org.polarion.svnimporter.stprovider.internal.STTransform.transform(STTransform.java:86)
at org.polarion.svnimporter.stprovider.STProvider.buildSvnModel(STProvider.java:127)
at org.polarion.svnimporter.main.Main.buildFullSvnModel(Main.java:158)
at org.polarion.svnimporter.main.Main.run(Main.java:88)
at org.polarion.svnimporter.main.Main.main(Main.java:51)

15:39:24,985 [main] DEBUG STProvider:80 - cleanup
15:39:25,000 [main] DEBUG SvnAdmin:80 - cleanup
15:39:25,000 [main] INFO historyLogger:84 - duration: 1 seconds

Thanks,
Jason

jasonw401
Posts: 2
Joined: Mon Aug 01, 2011 5:45 am

is this issue fixed in version 1.2?

Postby jasonw401 » Mon Aug 01, 2011 5:58 am

Hi Ken,

Could you please tell me if this issue has been fixed in version 1.2? I tried to import a StartTeam project into SVN and got the following error when a file on StarTeam is attached with a label.

Code: Select all

15:39:23,768 [main]  INFO historyLogger:84 - mode: create full dump
15:39:23,768 [main]  INFO historyLogger:84 - src provider: class org.polarion.svnimporter.stprovider.STProvider
15:39:23,768 [main]  INFO historyLogger:84 - creating full svn model...
15:39:24,766 [main] DEBUG STHistoryParser:80 - Recorded revision:    Interstage v10/Interstage v10/110_SVN_Migration_Test/docs/JavaEE_Operators_Guide_Proposal.doc    1.2    
15:39:24,766 [main] DEBUG STHistoryParser:80 - Recorded revision:    Interstage v10/Interstage v10/110_SVN_Migration_Test/docs/JavaEE_Operators_Guide_Proposal.doc    1.1    
15:39:24,782 [main] DEBUG STHistoryParser:80 - Recorded revision:    Interstage v10/Interstage v10/110_SVN_Migration_Test/docs/JavaEE_Operators_Guide_Proposal.doc    1.0    
15:39:24,782 [main]  INFO STCommitsCollection:84 - Validating commits...
15:39:24,782 [main]  INFO STProvider:84 - StarTeam model has been created.
15:39:24,782 [main]  INFO Model:84 - Summary:
15:39:24,782 [main]  INFO Model:84 -  Files: 1
15:39:24,782 [main]  INFO Model:84 -  Revisions: 3
15:39:24,782 [main]  INFO Model:84 -  Commits: 3
15:39:24,938 [main] DEBUG SvnModel:80 - create new revision 1
15:39:24,954 [main] DEBUG SvnModel:80 - add action: [add dir] trunk
15:39:24,954 [main] DEBUG SvnModel:80 - add action: [add dir] branches
15:39:24,954 [main] DEBUG SvnModel:80 - add action: [add dir] tags
15:39:24,954 [main] DEBUG SvnModel:80 - create new revision 2
15:39:24,969 [main] DEBUG SvnModel:80 - add action: [add dir] trunk/Interstage v10
15:39:24,969 [main] DEBUG SvnModel:80 - add action: [add dir] trunk/Interstage v10/110_SVN_Migration_Test
15:39:24,969 [main] DEBUG SvnModel:80 - add action: [add dir] trunk/Interstage v10/110_SVN_Migration_Test/docs
15:39:24,969 [main] DEBUG SvnModel:80 - add action: [add file] trunk/Interstage v10/110_SVN_Migration_Test/docs/JavaEE_Operators_Guide_Proposal.doc
15:39:24,969 [main] DEBUG SvnModel:80 - create new revision 3
15:39:24,969 [main] DEBUG SvnModel:80 - create tag label_v_0_1
15:39:24,985 [main] DEBUG SvnModel:80 - add action: [add dir] tags/label_v_0_1
15:39:24,985 [main] DEBUG SvnModel:80 - add action: [add dir] tags/label_v_0_1/Interstage v10
15:39:24,985 [main] DEBUG SvnModel:80 - add action: [add dir] tags/label_v_0_1/Interstage v10/110_SVN_Migration_Test
15:39:24,985 [main] DEBUG SvnModel:80 - add action: [add dir] tags/label_v_0_1/Interstage v10/110_SVN_Migration_Test/docs
15:39:24,985 [main] ERROR Main:96 - EXCEPTION CAUGHT: org.polarion.svnimporter.svnprovider.SvnException: Unknown branch: Interstage v10
   at org.polarion.svnimporter.svnprovider.SvnModel.getBranch(SvnModel.java:209)
   at org.polarion.svnimporter.svnprovider.SvnModel.addFileCopyToTag(SvnModel.java:337)
   at org.polarion.svnimporter.stprovider.internal.STTransform.transformCommit(STTransform.java:139)
   at org.polarion.svnimporter.stprovider.internal.STTransform.transform(STTransform.java:86)
   at org.polarion.svnimporter.stprovider.STProvider.buildSvnModel(STProvider.java:127)
   at org.polarion.svnimporter.main.Main.buildFullSvnModel(Main.java:158)
   at org.polarion.svnimporter.main.Main.run(Main.java:88)
   at org.polarion.svnimporter.main.Main.main(Main.java:51)

15:39:24,985 [main] DEBUG STProvider:80 - cleanup
15:39:25,000 [main] DEBUG SvnAdmin:80 - cleanup
15:39:25,000 [main]  INFO historyLogger:84 - duration: 1 seconds


cypherpunk
Posts: 1
Joined: Thu Mar 15, 2012 2:49 pm

Re: starteam to svn - unknown branch exception

Postby cypherpunk » Thu Mar 15, 2012 2:51 pm

kencorbin wrote:I think I tracked this down. The only way it can happen is if a name has been assigned to the trunk development path, probably something that only the starteam provider does. A revision on the main path with child labels will crash unless
The trunk only option is set, or
The ignore labels option is set, or
The file copy option is not set.

It would not recommend resetting the file copy option to get around this problem, you get a rather poor result if you do.

I build a version of svnimporter that (I hope) will fix this. You can get it by checking it out of the subversion repository, or wait until I get the webmaster to put it in the download section.


I'm having this problem. Any news on how to fix it?

chelito103
Posts: 2
Joined: Wed Apr 18, 2012 8:48 pm

Re: starteam to svn - unknown branch exception

Postby chelito103 » Thu Apr 19, 2012 5:18 pm

kencorbin wrote:I build a version of svnimporter that (I hope) will fix this. You can get it by checking it out of the subversion repository, or wait until I get the webmaster to put it in the download section.

Have you posted this fix anywhere? I have the same issue now, so I'm assumming it was never committed to the trunk.

mpunch
Posts: 1
Joined: Tue Aug 20, 2013 10:53 pm

Re: starteam to svn - unknown branch exception

Postby mpunch » Wed Aug 21, 2013 6:49 pm

Has there been any fix implemented for this? We're currently looking into migrating from StarTeam to SVN. It doesn't seems like there has been much support for this migration. Could someone please inform me as to where I can get more information on this?

Thanks!

wtruitt
Posts: 1
Joined: Wed Apr 01, 2015 9:48 pm

Re: starteam to svn - unknown branch exception

Postby wtruitt » Wed Apr 01, 2015 9:57 pm

I would also be interested in a fix for this STProvider bug. I was glad to have found the forum. The initial download using the StarTeam 2006 libraries seemed to be a hurdle at first. Then I found an old installer for the StarTeam Server. I was surprised to find that the software has several later releases once I found the forum. I thought maybe a fix had been checked in, but I am running into this same unknown branch error with the latest "1.5.0-SNAPSHOT" version.

Can some of you that have gone further through the process tell me what looks best in SVN from the options that can be used to go around the error (only_trunk=yes, st.ignorelables=yes, or use_file_copy=no)? From one of the comments, it sounds like the use_file_copy=now is least desirable.


Return to “Polarion SVN Importer (Repository Converter)”

Who is online

Users browsing this forum: No registered users and 2 guests