comparison tests/fixtures/branchmap.sh @ 574:8e025a6f0db4

add basic branchmap functionality, to rename branches
author Dirkjan Ochtman <dirkjan@ochtman.nl>
date Mon, 01 Mar 2010 22:10:18 +0100
parents
children
comparison
equal deleted inserted replaced
573:00393e9abff8 574:8e025a6f0db4
1 #!/bin/sh
2 # inspired by Python r62868
3
4 mkdir temp
5 cd temp
6 svnadmin create repo
7 svn co file://`pwd`/repo wc
8 export REPO=file://`pwd`/repo
9 cd wc
10 mkdir branches trunk tags
11 svn add *
12 svn ci -m 'btt'
13
14 echo a > trunk/a
15 svn add trunk/a
16 svn ci -m 'Add file.'
17 svn up
18
19 svn cp trunk branches/badname
20 svn ci -m 'Branch to be renamed.'
21 svn up
22
23 svn cp trunk branches/feature
24 svn ci -m 'Branch to be unnamed.'
25 svn up
26
27 cd ../..
28 svnadmin dump temp/repo > branchmap.svndump
29 echo
30 echo 'Complete.'
31 echo 'You probably want to clean up temp now.'
32 echo 'Dump in branchmap.svndump'
33 exit 0