svnimporter issue -- Unknown branch

sean_linux
Posts: 6
Joined: Wed Nov 16, 2011 6:36 am

svnimporter issue -- Unknown branch

Postby sean_linux » Thu Nov 24, 2011 5:04 pm

I always got a curious issue while svn-importer working for StarTeam exporting to SVN, it prompts "Unknown branch" and actually "BASC-BMCC-BPMP" is the default view of my Starteam repository.
-------------------------------
... ... ...
23:49:14,815 [main] DEBUG STHistoryParser:80 - Recorded revision: BASC-BMCC-BPMP/BMCC-BPMP/4.0 Quality Assurance/4.5 WP Reviews/SRS Reviews.xlsx 1.1

23:49:15,421 [main] DEBUG STHistoryParser:80 - Recorded revision: BASC-BMCC-BPMP/BMCC-BPMP/4.0 Quality Assurance/4.5 WP Reviews/SRS Reviews.xlsx 1.0

23:49:23,477 [main] INFO STCommitsCollection:84 - Validating commits...
23:49:33,816 [main] INFO STProvider:84 - StarTeam model has been created.
23:49:33,816 [main] INFO Model:84 - Summary:
23:49:33,817 [main] INFO Model:84 - Files: 37965
23:49:33,831 [main] INFO Model:84 - Revisions: 54364
23:49:33,831 [main] INFO Model:84 - Commits: 6621
23:49:33,843 [main] DEBUG SvnModel:80 - create new revision 1
23:49:33,848 [main] DEBUG SvnModel:80 - add action: [add dir] BPMP_test
23:49:33,848 [main] DEBUG SvnModel:80 - add action: [add dir] BPMP_test/trunk
23:49:33,849 [main] DEBUG SvnModel:80 - add action: [add dir] BPMP_test/branches
23:49:33,849 [main] DEBUG SvnModel:80 - add action: [add dir] BPMP_test/tags
23:49:33,849 [main] DEBUG SvnModel:80 - create new revision 2
23:49:33,850 [main] DEBUG SvnModel:80 - add action: [add dir] BPMP_test/trunk/BMCC-BPMP
23:49:33,853 [main] DEBUG SvnModel:80 - add action: [add file] BPMP_test/trunk/BMCC-BPMP/GADQMS_Wkbk_TOC.xls
23:49:33,854 [main] DEBUG SvnModel:80 - add action: [add file] BPMP_test/trunk/BMCC-BPMP/TOC_Instructions.txt
23:49:33,855 [main] DEBUG SvnModel:80 - add action: [add dir] BPMP_test/trunk/BMCC-BPMP/Change Requests
23:49:33,856 [main] DEBUG SvnModel:80 - add action: [add file] BPMP_test/trunk/BMCC-BPMP/Change Requests/PlaceHolder.txt
23:49:33,856 [main] DEBUG SvnModel:80 - add action: [add dir] BPMP_test/trunk/BMCC-BPMP/3.0 Source
23:49:33,857 [main] DEBUG SvnModel:80 - add action: [add file] BPMP_test/trunk/BMCC-BPMP/3.0 Source/PlaceHolder.txt
23:49:33,859 [main] DEBUG SvnModel:80 - add action: [add file] BPMP_test/trunk/BMCC-BPMP/Wkbk_TOC-56091.xml
23:49:33,859 [main] DEBUG SvnModel:80 - create new revision 3
23:49:33,859 [main] DEBUG SvnModel:80 - create tag 2BMCC-Iteartion1-Integration Test-v0.4.0-20101206
23:49:33,860 [main] DEBUG SvnModel:80 - add action: [add dir] BPMP_test/tags/2BMCC-Iteartion1-Integration Test-v0.4.0-20101206
23:49:33,860 [main] DEBUG SvnModel:80 - add action: [add dir] BPMP_test/tags/2BMCC-Iteartion1-Integration Test-v0.4.0-20101206/BMCC-BPMP
23:49:33,861 [main] INFO historyLogger:84 - EXCEPTION CAUGHT: org.polarion.svnimporter.svnprovider.SvnException: Unknown branch: BASC-BMCC-BPMP
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)

23:49:33,861 [main] INFO historyLogger:84 - duration: 85526 seconds

I copying a piece of my config file for svn-importer here for your referring. Appreciate any support.
...
# SVN DUMP OPTIONS
trunk_path=BPMP_test/trunk
branches_path=BPMP_test/branches
tags_path=BPMP_test/tags
svnimporter_user_name=SvnImporter
only_trunk=no
# STAR TEAM PROVIDER CONFIGURATION
st.class=org.polarion.svnimporter.stprovider.STProvider
st.url=st_user:st_passwd@st_server:port/project/BASC-BMCC-BPMP

Also, any suggestion you may reach me at my email: sean_linux@163.com. Thanks.

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

Re: svnimporter issue -- Unknown branch

Postby chelito103 » Thu Apr 19, 2012 4:49 pm

This seems like the same issue from viewtopic.php?f=4&t=19207 and it seems to go away when ignoreLabels is set to true. Unfortunately, I don't think there is a current fix for this issue.


Return to “Polarion SVN Importer (Repository Converter)”

Who is online

Users browsing this forum: No registered users and 6 guests