3 # This is the script used to create the add-on-branch CVS repository.
4 # (The repository is checked into svn; this script is only here for
5 # its documentation value.) The script should be started from the
6 # main cvs2svn directory.
8 # The output of this script depends on the CVS version. Newer CVS
9 # versions add dead revisions (b.txt:1.1.2.1 and c.txt:1.2.2.1) on the
10 # branch, presumably to indicate that the file didn't exist on the
11 # branch during the period of time between the branching point and
12 # when the 1.x.2.2 revisions were committed. Older versions of CVS do
13 # not add these extra revisions. The point of this test is to handle
14 # the new CVS behavior, so set this variable to point at a newish CVS
17 cvs
=$HOME/download
/cvs-1.11
.21/src
/cvs
20 repo
=`pwd`/test-data
/$name-cvsrepos
21 wc=`pwd`/cvs2svn-tmp
/$name-wc
22 [ -e $repo/CVSROOT
] && rm -rf $repo/CVSROOT
23 [ -e $repo/proj
] && rm -rf $repo/proj
24 [ -e $wc ] && rm -rf $wc
27 $cvs -d $repo co
-d $wc .
33 echo "Create a file a.txt on trunk:"
36 $cvs commit
-m 'Adding a.txt:1.1' .
38 echo "Create BRANCH1 on file a.txt:"
41 echo "Create BRANCH2 on file a.txt:"
44 echo "Create BRANCH3 on file a.txt:"
52 echo "Add file $f on trunk:"
56 $cvs commit
-m "Adding $f:1.1"
59 echo "Add file $f on $b:"
62 # Ensure that times are distinct:
66 $cvs commit
-m "Adding $f:1.1.2.2"
73 echo "Add file $f on trunk:"
77 $cvs commit
-m "Adding $f:1.1"
80 echo "Delete file $f on trunk:"
83 $cvs commit
-m "Removing $f:1.2"
86 echo "Add file $f on $b:"
89 # Ensure that times are distinct:
93 $cvs commit
-m "Adding $f:1.2.2.2"
100 echo "Add file $f on trunk:"
104 $cvs commit
-m "Adding $f:1.1"
107 echo "Add file $f on $b:"
110 # Ensure that times are distinct:
114 $cvs commit
-m "Adding $f:1.1.2.2"
117 echo "Modify file $f on trunk:"
120 $cvs commit
-m "Changing $f:1.2"
123 # Erase the unneeded stuff out of CVSROOT: