comparison tests/fixtures/rename_branch_parent_dir.sh @ 551:d17cec76e769

replay: correctly handle renaming the parent dir of a branch
author Augie Fackler <durin42@gmail.com>
date Sat, 06 Feb 2010 13:01:35 -0600
parents
children
comparison
equal deleted inserted replaced
550:f0159775e0f1 551:d17cec76e769
1 #!/bin/sh
2 mkdir temp
3 cd temp
4 svnadmin create repo
5 svn co file://`pwd`/repo wc
6
7 cd wc
8 mkdir brances trunk tags
9 svn add *
10 svn ci -m 'btt'
11
12 cd trunk
13 for a in alpha beta gamma delta ; do
14 echo $a > $a
15 svn add $a
16 done
17 svn ci -m 'Add files.'
18
19 cd ..
20 svn up
21 svn cp trunk brances/dev_branch
22 svn ci -m 'branch'
23
24 cd brances/dev_branch
25 svn rm delta
26 echo narf > alpha
27 echo iota > iota
28 svn add iota
29 svn ci -m 'branch changes'
30
31 cd ../..
32 svn up
33 svn mv brances branches
34 svn ci -m 'move branches to branches'
35
36 cd ..
37 cd ..
38
39 svnadmin dump temp/repo > rename_branch_parent_dir.svndump
40 echo
41 echo 'Complete.'
42 echo 'You probably want to clean up temp now.'
43 echo 'Dump in rename_branch_parent_dir.svndump'
44 exit 0