comparison tests/fixtures/branch_create_with_dir_delete.sh @ 232:c0063328587f

Fix and test for directory deletes during branch creation.
author Augie Fackler <durin42@gmail.com>
date Tue, 07 Apr 2009 17:38:13 -0500
parents
children
comparison
equal deleted inserted replaced
231:b1543f243910 232:c0063328587f
1 #!/bin/sh
2 mkdir temp
3 cd temp
4 svnadmin create repo
5 svn co file://`pwd`/repo wc
6 cd wc
7 mkdir branches trunk tags
8 svn add *
9 svn ci -m 'btt'
10 cd trunk
11 for a in alpha beta gamma delta ; do
12 echo $a > $a
13 svn add $a
14 done
15 svn ci -m 'Add files.'
16 mkdir al
17 echo foo > al/foo
18 svn add al
19 svn ci -m 'add directory al to delete on the branch'
20 cd ..
21 svn up
22 svn cp trunk branches/dev_branch
23 svn rm branches/dev_branch/al
24 svn ci -m 'branch'
25 cd branches/dev_branch
26 svn rm delta
27 echo narf > alpha
28 echo iota > iota
29 svn add iota
30 svn ci -m 'branch changes'
31 cd ../../../..
32 svnadmin dump temp/repo > branch_create_with_dir_delete.svndump
33 echo
34 echo 'Complete.'
35 echo 'You probably want to clean up temp now.'
36 echo 'Dump in branch_create_with_dir_delete.svndump'
37 exit 0