Mercurial > hgsubversion
comparison tests/fixtures/rename-closed-branch-dir.sh @ 1373:b072dc02d1e3
rename-closed-branch-dir: add a fixture that renames a directory of closed branches
Reported as issue 423.
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Wed, 27 Jan 2016 16:47:20 -0500 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
1372:84789e32b32e | 1373:b072dc02d1e3 |
---|---|
1 #!/bin/sh | |
2 # | |
3 # Generate rename-closed-branch-dir.svndump | |
4 # | |
5 | |
6 mkdir temp | |
7 cd temp | |
8 | |
9 mkdir project | |
10 cd project | |
11 mkdir trunk | |
12 mkdir branches | |
13 mkdir tags | |
14 cd .. | |
15 | |
16 svnadmin create testrepo | |
17 CURRENT_DIR=`pwd` | |
18 svnurl=file://"$CURRENT_DIR"/testrepo | |
19 #svn import project-orig $svnurl -m "init project" | |
20 | |
21 svn co $svnurl project | |
22 cd project | |
23 svn add * | |
24 svn ci -m "init project" | |
25 | |
26 cd trunk | |
27 echo a > a.txt | |
28 svn add a.txt | |
29 svn ci -m "add a.txt in trunk" | |
30 | |
31 # Create a branch | |
32 svn up | |
33 cd ../branches | |
34 svn copy ../trunk async-db | |
35 svn ci -m "add branch async-db" | |
36 svn up | |
37 | |
38 # Implement feature | |
39 cd async-db | |
40 echo b > b.txt | |
41 svn add b.txt | |
42 svn ci -m "Async functionality" | |
43 | |
44 # Merge feature branch | |
45 cd ../../trunk | |
46 svn merge $svnurl/branches/async-db | |
47 svn ci -m "Merged branch async-db" | |
48 cd .. | |
49 svn up | |
50 | |
51 # Create branch folder for unnecessary branches | |
52 svn mkdir $svnurl/branches/dead -m "Create branch folder for unnecessary branches" | |
53 svn up | |
54 | |
55 # We don't need the 'async-db' branch, anymore. | |
56 svn copy $svnurl/branches/async-db $svnurl/branches/dead -m "We don't need the 'async-db' branch, anymore." | |
57 svn up | |
58 | |
59 # Rename 'dead' folder to 'closed' | |
60 svn move $svnurl/branches/dead $svnurl/branches/closed -m "Renamed 'dead' folder to 'closed'" | |
61 svn up | |
62 | |
63 # Move 'branches/closed' to 'tags/closed' | |
64 svn move $svnurl/branches/closed $svnurl/tags/closed -m "Moved 'branches/closed' to 'tags/closed'." | |
65 svn up | |
66 | |
67 # Dump repository | |
68 cd .. | |
69 svnadmin dump testrepo > ../rename-closed-branch-dir.svndump |