Wednesday, May 21, 2008

Move local CVS repository to RCS

The following is the way to convert existing CVS repository to RCS.
Actually no conversion required;
It works for me; no warranty that it would work for somebody else;


# from /home/rtg/
mkdir for_rcs
cd for_rcs
# CVS_REPO/cvs:/ - is repository created with cervesia
cp -r /home/rtg/CVS_REPO/cvs\:/* .
find ./ -name CVS | xargs rm -rf
for i in `find ./ -type d` ; do cd $i ; mkdir RCS ; mv *,v RCS/ ; cd /home/rtg/for_rcs/ ; done

Ok, at this point I have RCS repository in for_rcs folder.
:)

No comments: