Mercurial > hgsubversion
comparison tests/fixtures/subdir_branches_tags.sh @ 1093:791382a21cc4
layouts: add support for configuring branches directory
This should work for both alternately named directories (e.g. releases
instead of branches), as well as subdirs (branches/releases), and
combinations thereof (releases/public).
author | David Schleimer <dschleimer@fb.com> |
---|---|
date | Tue, 11 Jun 2013 17:53:31 -0700 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
1092:cd0d14e25757 | 1093:791382a21cc4 |
---|---|
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 bran/ches | |
14 mkdir -p ta/gs | |
15 | |
16 svn add trunk bran ta | |
17 svn commit -m "Initial commit" | |
18 | |
19 echo "trunk" >> trunk/file | |
20 svn add trunk/file | |
21 svn commit -m "Added file in trunk" | |
22 | |
23 svn cp trunk ta/gs/tag_from_trunk | |
24 svn ci -m 'created tag from trunk' | |
25 | |
26 svn cp trunk bran/ches/branch | |
27 svn ci -m 'created branch from trunk' | |
28 | |
29 echo "branch" > bran/ches/branch/file | |
30 svn ci -m "committed to the branch" | |
31 | |
32 svn cp bran/ches/branch ta/gs/tag_from_branch | |
33 svn ci -m "create tag from branch" | |
34 | |
35 cd .. | |
36 svnadmin dump testrepo > ../subdir_branches_tags.svndump | |
37 | |
38 echo "Created subdir_branches_tags.svndump" | |
39 echo "You might want to clean up ${PWD} now" |