3 # This is the script used to create the branch-from-deleted-1-1 CVS
4 # repository. (The repository is checked into svn; this script is
5 # only here for its documentation value.)
7 # The script should be started from the main cvs2svn directory.
9 name
=branch-from-deleted-1-1
10 repo
=`pwd`/test-data
/$name-cvsrepos
11 wc=`pwd`/cvs2svn-tmp
/$name-wc
12 [ -e $repo/CVSROOT
] && rm -rf $repo/CVSROOT
13 [ -e $repo/proj
] && rm -rf $repo/proj
14 [ -e $wc ] && rm -rf $wc
17 cvs
-d $repo co
-d $wc .
23 echo "Create a file a.txt on trunk:"
26 cvs commit
-m 'Adding a.txt:1.1' .
28 echo "Create two branches on file a.txt:"
33 echo "Add file b.txt on BRANCH1:"
38 cvs commit
-m 'Adding b.txt:1.1.2.1'
41 echo "Add file b.txt on BRANCH2:"
46 cvs commit
-m 'Adding b.txt:1.1.4.1'
49 echo "Add file b.txt on trunk:"
53 cvs commit
-m 'Adding b.txt:1.2'
57 echo "Add file c.txt on BRANCH1:"
62 cvs commit
-m 'Adding c.txt:1.1.2.1'
65 echo "Add file c.txt on BRANCH2:"
70 cvs commit
-m 'Adding c.txt:1.1.4.1'
74 echo "Create branch BRANCH3 from 1.1 versions of b.txt and c.txt:"
75 cvs rtag
-r 1.1 -b BRANCH3 proj
/b.txt proj
/c.txt
77 echo "Create tag TAG1 from 1.1 versions of b.txt and c.txt:"
78 cvs rtag
-r 1.1 TAG1 proj
/b.txt proj
/c.txt