comparison tests/fixtures/subprojects.sh @ 1094:9a7e3dbd0f6e

layouts: add support for an infix between tbt and the hg root
author David Schleimer <dschleimer@fb.com>
date Wed, 11 Sep 2013 10:55:01 -0700
parents
children
comparison
equal deleted inserted replaced
1093:791382a21cc4 1094:9a7e3dbd0f6e
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"