ClearCase to SubVersion - S.O.S

mattia

ClearCase to SubVersion - S.O.S

Postby mattia » Wed Jul 13, 2005 6:26 pm

I need to know, step by step, how do the migration from ClearCase to SubVersion with SVN Client, keeping the history of the pieces.
I´ll appreciate your help with this case.
Please, thanks for advance,

Marcelo

dobisekm
Posts: 118
Joined: Wed Mar 23, 2005 3:29 pm
Location: Prague, Czech Republic

Postby dobisekm » Thu Jul 14, 2005 9:42 am

Hi Marcelo,

the SVN Importer works in two phases: first it reads your repository and creates a SVN Dump file from it, second it imports the dump file into the SVN repository. The second step is optional, because it can be done manually as well.

The best way to start is to download the SVN Importer binary build and to go through the config.properties config file and set the properties to fit your needs (most of them is commented inside the file; some are documented in the documentation).

Then execute the run.bat script and see the result. It probably will not be OK for the first time, but after several configure/run iterations you will get familiar with it.

Hope this helps,

Michal

Mattia

IMPORTER - Problems

Postby Mattia » Thu Jul 14, 2005 10:29 pm

Thanks Michal

I want take pieces from ClearCase (Rational CleaCase Explorer 2002.05.00+)
to SVN with svn-importer-1.1-M6, using the command ">java -jar svnimporter.jar full config.properties".

My problem is the import doesn't bring me the file full_dump_yyyymmdd_hhmmss.txt
how i expected it.
It doesn't create the file with the vob of ClearCase, inside of the SVN repository.
Really, I had tried all.
I think the problem would be that the config.properties doesn't read the view in ClearCase correctly.
I used a snapshot and a dinamic view for the test without success.
Sometimes display an error "historyLogger:84 INFO - EXCEPTION CAUGHT: org.polarion.svnimporter.ccprovider.CCException: error during execution ..[...]..".

I want put SVN for all projects, but I must to do it works well with surprises.
Thanks a lot for your help and comprehension.


Config.properties:

# The source repository provider,
# either cvs or pvcs
srcprovider=cc

import_dump_into_svn=yes
existing_svnrepos=yes
clear_svn_parent_dir=yes

# AFFECT FOR FULL DUMP CREATION ONLY!
use_only_last_revision_content=no

file_description_property_key=description

# FILE SETTINGS
##############
full.dump.file=full_dump_%date%.txt
incr.dump.file=incr_dump_%date%.txt
incr.history.file=incr_history.txt
list.files.to=files_%date%.txt

################
trunk_path=trunk
branches_path=branches
tags_path=tags
svnimporter_user_name=SvnImporter
only_trunk=no

################
# SVN AUTOIMPORT OPTIONS
################
svnadmin.executable=C:/svn/bin/svnadmin.exe
svnadmin.repository_path=D:/SubVersion
svnadmin.parent_dir=.
svnadmin.tempdir=c:/temp/local
svnclient.executable=C:/svn/bin/svn.exe
svnadmin.verbose_exec=yes

########################## CLEAR CASE PROVIDER CONFIGURATION ####################
cc.class=org.polarion.svnimporter.ccprovider.CCProvider
cc.executable=C:/Archivos de programa/Rational/ClearCase/bin/cleartool.exe
cc.projectpath=D:/ClearCase_Storage/Views/prueba_version/AR_RH
cc.projectpath=D:/ClearCase_Storage/Views/prueba_version
cc.log.dateformat=yyyyMMdd.HHmmss
cc.log.encoding=Cp1251
cc.tempdir=c:/temp/local
cc.verbose_exec=yes

########################## LOG4J CONFIGURATION ##################################
log4j.rootLogger=DEBUG, stdout

#log4j.logger.cz=DEBUG, file
#log4j.logger.cz=DEBUG, stdout

##log4j.logger.historyLogger=DEBUG, historyFile

log4j.appender.file=org.apache.log4j.FileAppender
log4j.appender.file.File=svnimporter.log
log4j.appender.file.layout=org.apache.log4j.PatternLayout
log4j.appender.file.layout.ConversionPattern=%d{HH:mm:ss,SSS} [%t] %5p %c{1}:%L - %m%n

log4j.appender.historyFile=org.apache.log4j.FileAppender
log4j.appender.historyFile.File=history.log
log4j.appender.historyFile.layout=org.apache.log4j.PatternLayout
log4j.appender.historyFile.layout.ConversionPattern=%m%n

log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%c{1}:%L %5p - %m%n

disable_cleanup=no
==================================================================

dobisekm
Posts: 118
Joined: Wed Mar 23, 2005 3:29 pm
Location: Prague, Czech Republic

Postby dobisekm » Fri Jul 15, 2005 8:56 am

Hi Marcelo,

your config file seems to be OK.

Could you send your svnimporter.log and history.log files as well? In case they are too big to paste, then please send them to my email michal.dobisek AT polarion.org

Michal

dobisekm
Posts: 118
Joined: Wed Mar 23, 2005 3:29 pm
Location: Prague, Czech Republic

Postby dobisekm » Tue Jul 19, 2005 4:50 pm

Hi Marcelo,

the problem in your logs seems to be

Caused by: java.io.IOException: CreateProcess: "C:/Archivos de
programa/Rational/ClearCase/bin/cleartool.exe" lshistory -recurse -fmt
%Nd@@@%En@@@%Vn@@@%o@@@!%l@@@!%a@@@%m@@@%u@@@%Nc@@@\n error=267


Which means that Java is not able to start the

Code: Select all

C:/Archivos de programa/Rational/ClearCase/bin/cleartool.exe
Please check if the path is correct and also try to replace the slashes by backslashes, since it's on Windows (don't forget to eschape them, so that it becomes

Code: Select all

C:\\Archivos de programa\\Rational\\ClearCase\\bin\\cleartool.exe


Hope this helps, please let us know,

Michal Dobisek, Polarion Team

MARCELO MATTIA

FOR MICHAL

Postby MARCELO MATTIA » Wed Jul 20, 2005 6:26 pm

Thanks a lot for your help...
yesterdey, i found out the problem.
It was in the CleaCase Path, but about the view.
Now i'm going to test import a whole clearcase view.
yet, i must to know how to rename by programing, the
Revision label, and how todo that SubVersion puts sequential revision number
inside Repository. i.e., Revision 1, Revision 2, and go on, but not Revision 5, Revision 17
when only I had imported two times.
Thanks in advanced for your important help.

dobisekm
Posts: 118
Joined: Wed Mar 23, 2005 3:29 pm
Location: Prague, Czech Republic

Postby dobisekm » Thu Jul 21, 2005 7:56 am

Hi Marcelo,

I am glad to hear that you have solved the initial problem.

I am a bit confused by your last post, because it seems like you are aksing for something, but I am not able to figure out for what.

Michal Dobisek, Polarion Team

llignhoj

Re: FOR MICHAL

Postby llignhoj » Fri Sep 02, 2005 9:57 am

MARCELO MATTIA wrote:Thanks a lot for your help...
yesterdey, i found out the problem.
It was in the CleaCase Path, but about the view.
Now i'm going to test import a whole clearcase view.
yet, i must to know how to rename by programing, the
Revision label, and how todo that SubVersion puts sequential revision number
inside Repository. i.e., Revision 1, Revision 2, and go on, but not Revision 5, Revision 17
when only I had imported two times.
Thanks in advanced for your important help.


What do you mean, when you say "It was in the ClearCase Path"? Did you change something in your .properties file? I have exactly the same error :(

dobisekm
Posts: 118
Joined: Wed Mar 23, 2005 3:29 pm
Location: Prague, Czech Republic

Postby dobisekm » Fri Sep 02, 2005 11:03 am

Hi llignhoj,

the problem regarding the clear case path is adressed by my post Posted: Tue Jul 19, 2005 5:50 pm above in this thread. Check, whether your path to cleartool.exe is correct.

Hope this helps,

Michal Dobisek, Polarion Team

Guest

Re: FOR MICHAL

Postby Guest » Thu Sep 08, 2005 2:37 pm

llignhoj wrote:
MARCELO MATTIA wrote:Thanks a lot for your help...
yesterdey, i found out the problem.
It was in the CleaCase Path, but about the view.
Now i'm going to test import a whole clearcase view.
yet, i must to know how to rename by programing, the
Revision label, and how todo that SubVersion puts sequential revision number
inside Repository. i.e., Revision 1, Revision 2, and go on, but not Revision 5, Revision 17
when only I had imported two times.
Thanks in advanced for your important help.


What do you mean, when you say "It was in the ClearCase Path"? Did you change something in your .properties file? I have exactly the same error :(


=======================================================================
I was putting a bad path....when you use Clearcase, at top you can see the
path of the view (i.e. Y:/vobname/dir), this path must be used in the config.properties in
"cc.projectpath=". Let me see if it solved your problem.
Any question, don´t hesitate to contact me.
=======================================================================

Guest

Postby Guest » Thu Sep 08, 2005 3:23 pm

dobisekm wrote:Hi Marcelo,

I am glad to hear that you have solved the initial problem.

I am a bit confused by your last post, because it seems like you are aksing for something, but I am not able to figure out for what.

Michal Dobisek, Polarion Team


Michal

I´m late, excuse me.
My question was about "revision", if it is possible to change the way that SubVersion puts "revision numbers". We used another criteria for to number the revision...
In any way i found out a note that answered partially my question.
If you know where to get information about how to change the numbers of the revision,
please, let me know.
thanks for all.

dobisekm
Posts: 118
Joined: Wed Mar 23, 2005 3:29 pm
Location: Prague, Czech Republic

Postby dobisekm » Mon Sep 19, 2005 9:24 am

Hi Marcelo,

BTW, you can register for this forums.The registrationt will allow you to keep track of your posts an being email notified if reply to your post is added.

Regaring the revisions: as far as I know, the SVN labels the revisions with numbers, incrementally, commit after commit (for the whole repository). I don't think, it is possible to change this.

I hope this helps,

Michal Dobisek, Polarion Team


Return to “Polarion SVN Importer (Repository Converter)”

Who is online

Users browsing this forum: No registered users and 6 guests