comparison tests/fixtures/subprojects.sh @ 1106:5cb6c95e0283 stable

Merge default and stable so I can do stable releases again.
author Augie Fackler <raf@durin42.com>
date Tue, 11 Feb 2014 12:48:49 -0500
parents 9a7e3dbd0f6e
children
comparison
equal deleted inserted replaced
1020:b5b1fce26f1f 1106:5cb6c95e0283
1 #!/usr/bin/env bash
2
3 set -e
4
5 mkdir temp
6 cd temp
7
8 svnadmin create testrepo
9 svn checkout file://`pwd`/testrepo client
10
11 cd client
12 mkdir trunk
13 mkdir -p branches
14 mkdir -p tags
15
16 svn add trunk branches tags
17 svn commit -m "Initial commit"
18
19 mkdir trunk/project trunk/other
20 echo "project trunk" > trunk/project/file
21 echo "other trunk" > trunk/other/phile
22 svn add trunk/project trunk/other
23 svn commit -m "Added file and phile in trunk"
24
25 svn up
26
27 svn cp trunk tags/tag_from_trunk
28 svn ci -m 'created tag from trunk'
29
30 svn up
31
32 svn cp trunk branches/branch
33 svn ci -m 'created branch from trunk'
34
35 svn up
36
37 echo "project branch" > branches/branch/project/file
38 svn ci -m "committed to the project branch"
39
40 svn up
41
42 echo "trunk2" > trunk/project/file
43 svn ci -m "committed to trunk again"
44
45 svn up
46
47 echo "other branch" > branches/branch/other/phile
48 svn ci -m "committed to the other branch"
49
50 svn up
51
52 svn cp branches/branch tags/tag_from_branch
53 svn ci -m "create tag from branch"
54
55 cd ..
56 svnadmin dump testrepo > ../subprojects.svndump
57
58 echo "Created subprojects.svndump"
59 echo "You might want to clean up ${PWD} now"