comparison tests/fixtures/replace_trunk.sh @ 147:22162380c4b9

Improve branch closing in the case of a single-rev replacement of one branch with another. Includes a test case.
author Augie Fackler <durin42@gmail.com>
date Sat, 20 Dec 2008 19:04:59 -0600
parents
children
comparison
equal deleted inserted replaced
146:4da9f20aef01 147:22162380c4b9
1 #!/bin/sh
2
3 RSVN="`pwd`/rsvn.py"
4 export PATH=/bin:/usr/bin
5 mkdir temp
6 cd temp
7
8 svnadmin create repo
9 svn co file://`pwd`/repo wc
10
11 cd wc
12 mkdir trunk branches
13 cd trunk
14 for a in alpha beta gamma ; do
15 echo $a > $a
16 done
17 cd ..
18 svn add *
19 svn ci -m 'initial'
20
21 svn up
22 svn cp trunk branches/test
23 svn ci -m 'branch'
24
25 svn up
26 echo foo >> branches/test/alpha
27 svn ci -m 'Mod.'
28
29 cd ..
30 echo rdelete trunk > tmp
31 echo rcopy branches/test trunk >> tmp
32 python $RSVN --message=blah --username=evil `pwd`/repo < tmp
33
34 svnadmin dump repo > ../replace_trunk_with_branch.svndump