comparison tests/fixtures/copyafterclose.sh @ 1232:ba8485b9fee0

editor: correctly import copies of directories from non-tracked or closed branches
author David Schleimer <dschleimer@fb.com>
date Sun, 17 Nov 2013 09:57:00 -0800
parents
children
comparison
equal deleted inserted replaced
1231:5c2917375961 1232:ba8485b9fee0
1 #!/bin/sh
2
3 rm -rf temp
4 mkdir temp
5 cd temp
6 svnadmin create repo
7 repo=file://`pwd`/repo
8 svn co $repo wc
9 cd wc
10 mkdir branches trunk tags
11 svn add *
12 svn ci -m 'btt'
13
14 cd trunk
15 echo trunk1 > file
16 mkdir dir
17 echo trunk1 > dir/file
18 svn add file dir
19 svn ci -m 'Add file and dir.'
20 cd ..
21 svn up
22
23 svn cp trunk branches/test
24 svn ci -m 'Branch.'
25 svn up
26
27 cd branches/test/
28 echo branch1 > file
29 echo branch1 > dir/file
30 svn ci -m 'edit on branch.'
31 cd ../../
32 svn up
33
34 cd trunk
35 echo trunk2 > file
36 echo trunk2 > dir/file
37 svn ci -m 'edit on trunk'
38 cd ..
39 svn up
40
41 svn rm trunk
42 svn ci -m 'Close trunk.'
43 svn up
44
45 cd branches/test
46 svn rm file
47 svn cp $repo/trunk/file@5 file
48 svn rm dir
49 svn cp $repo/trunk/dir@5 dir
50 svn ci -m 'copy from trunk before close'
51 cd ../..
52 svn up
53
54 cd ../..
55 svnadmin dump temp/repo > copyafterclose.svndump
56 echo
57 echo 'Complete.'
58 echo 'You probably want to clean up temp now.'
59 echo 'Dump in copyafterclose.svndump'
60 exit 0