Add an API to affect the choice of RCS parser.
[cvs2svn.git] / test-data / branch-from-empty-dir-cvsrepos / makerepo.sh
blobb911f461e1fa626cd87784d5102118bf81e2015e
1 #! /bin/sh
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
20 cvs -d $repo init
21 cvs -d $repo co -d $wc .
22 cd $wc
23 mkdir proj
24 cvs add proj
25 cd proj
26 mkdir subdir
27 cvs add subdir
28 echo '1.1' >subdir/b.txt
29 cvs add subdir/b.txt
30 cvs commit -m 'Adding subdir/b.txt:1.1' .
33 rm subdir/b.txt
34 cvs rm subdir/b.txt
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
42 echo '1.1' >a.txt
43 cvs add a.txt
44 cvs commit -m 'Adding a.txt:1.1' .
46 cvs tag -b BRANCH1 a.txt
47 cvs update -r BRANCH1
49 echo '1.1.2.1' >a.txt
50 cvs commit -m 'Committing a.txt:1.1.2.1' a.txt
52 cvs tag -b BRANCH2 a.txt