3 # This is the script used to create the branch-from-empty-dir 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 # The repository itself tickles a problem that I was having with an
10 # uncommitted version of better-symbol-selection when BRANCH2 is
11 # grafted onto BRANCH1.
13 name
=branch-from-empty-dir
14 repo
=`pwd`/test-data
/$name-cvsrepos
15 wc=`pwd`/cvs2svn-tmp
/$name-wc
16 [ -e $repo/CVSROOT
] && rm -rf $repo/CVSROOT
17 [ -e $repo/proj
] && rm -rf $repo/proj
18 [ -e $wc ] && rm -rf $wc
21 cvs
-d $repo co
-d $wc .
28 echo '1.1' >subdir
/b.txt
30 cvs commit
-m 'Adding subdir/b.txt:1.1' .
35 cvs commit
-m 'Removing subdir/b.txt' .
38 cvs rtag
-r 1.2 -b BRANCH1 proj
/subdir
/b.txt
39 cvs rtag
-r 1.2 -b BRANCH2 proj
/subdir
/b.txt
44 cvs commit
-m 'Adding a.txt:1.1' .
46 cvs tag
-b BRANCH1 a.txt
50 cvs commit
-m 'Committing a.txt:1.1.2.1' a.txt
52 cvs tag
-b BRANCH2 a.txt