Hello,


I wonder if anybody has written a
script to migrate a ClearCase repository to CVS.
A suitable script would preserve at least
release tags and branch structure.

My own "proof of concept" does not do that.
I am relatively new to CVS.
What caveats can you see in processing the
following tree:

file.f90@@/main/0
file.f90@@/main/1 ( RELEASE_1_0 )
file.f90@@/main/branch/0
file.f90@@/main/branch/1
file.f90@@/main/branch/subbranch/0
file.f90@@/main/branch/subbranch/1
file.f90@@/main/branch/2
file.f90@@/main/2 ( RELEASE_1_1 )
...

foreach f ( from_the_list_above )
        # parse the name $f to obtain
        # the deapest branch name and release tags
        cat $CCASE/$f > $f
        cvs add $f  # if /main/0 only
        # HERE I AM NOT SURE AT ALL:
        cvs ci -b -r $name_of_the_current_brunch $f
        cvs tag $release_tags $f
end foreach

What would you do with "removed" files in older versions
of directories?


Alexei






_______________________________________________
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs

Reply via email to