comparison tests/fixtures/siblingbranchfix.sh @ 493:41c333473dda

try to deal with weirdly located branches in rebuildmeta (#118)
author Dirkjan Ochtman <dirkjan@ochtman.nl>
date Tue, 22 Sep 2009 16:46:16 +0200
parents
children
comparison
equal deleted inserted replaced
492:50d77547c218 493:41c333473dda
1 #!/bin/sh
2
3 mkdir temp
4 cd temp
5 svnadmin create repo
6 svn co file://`pwd`/repo wc
7 cd wc
8 mkdir branches trunk tags
9 svn add *
10 svn ci -m 'btt'
11 cd trunk
12
13 echo a > a
14 svn add a
15 svn ci -m 'Add file.'
16 svn up
17
18 cd ..
19 svn cp trunk wrongbranch
20 svn ci -m 'Branch to repo root dir.'
21 svn up
22
23 svn mv wrongbranch branches/wrongbranch
24 svn ci -m 'Move branch to correct branches location'
25 svn up
26
27 cd ../..
28 svnadmin dump temp/repo > siblingbranchfix.svndump
29 echo
30 echo 'Complete.'
31 echo 'You probably want to clean up temp now.'
32 echo 'Dump in siblingbranchfix.svndump'
33 exit 0