SVN project import to ClearCase -
i have client rather insistent using clearcase. there tools/scripts allow team import svn projects? team projects in svn…. how import svn project clearcase?
thank
this technote mention:
clearcase not provide tool import subversion maintain version history.
if not interested in maintaining version history , merely wish start latest version or preselected configuration, can use clearfsimport command. review clearcase command reference guide on topic of
clearfsimport
(cleartool man clearfsimport
) more information.if require version history, may want evaluate open source tool svn2cc.
that project might obsolete, detailed in this thread:
the utility in 1 2 ways
- the fist create series of batch files need executed after utility runs. batch files, when executed, insert source files cc.
- the second directly insert records cc utility. can choose option best project.
the svn dump file contains data need. includes source file , associated meta-data (history, author, etc). svn administrator able generate dump files you.
this github script illustrates "simple" approach (clearfsimport), allowing import successive svn revision mention 1 one:
@echo off set cc_vob_dir= set cc_view_tag= set cc_component_name= set cc_vob_name= set tmp_svn_export_dir= set svn_url= @echo deleting directory %tmp_svn_export_dir% rd /s /q %tmp_svn_export_dir% svn export %svn_url% %tmp_svn_export_dir% --force clearfsimport -nsetevent -recurse -rmname %tmp_svn_export_dir% %cc_vob_dir% if %1==-b ( cleartool mkbl -view %cc_view_tag% -full -component %cc_component_name%@\%cc_vob_name% %cc_component_name% )
this similar this thread answer:
the way come list of svn tags represent milestone builds or releases , import oldest newest, building version history , several branches in process.
depending on how "structured" cvs or svn or .... repository is, importing results in bad version trees. had 1 case particular cvs branching export/import worked without fuss , result , want work in cc.so spend time analyzing svn repository , how translate cc branches , identify tags , create cc config specs , clearfsimport oldest newest.
Comments
Post a Comment