comparison tests/fixtures/branch_rename_to_trunk.sh @ 133:2242dd1163c6

hg_delta_editor: fix bad parent revision calculation in the case of a branch recycling a name. Also implemented marking branches as closed in both replay and stupid paths.
author Augie Fackler <durin42@gmail.com>
date Wed, 10 Dec 2008 14:29:05 -0600
parents
children
comparison
equal deleted inserted replaced
132:3a9d6cd18332 133:2242dd1163c6
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 cd ..
17 svn up
18 svn cp trunk branches/dev_branch
19 svn ci -m 'branch'
20 cd branches/dev_branch
21 svn rm delta
22 echo narf > alpha
23 echo iota > iota
24 svn add iota
25 svn ci -m 'branch changes'
26 cd ../..
27 svn up
28 svn mv trunk branches/old_trunk
29 svn ci -m 'move trunk to a branch'
30 svn up
31 svn mv branches/dev_branch trunk
32 svn ci -m 'move dev to trunk'
33 cd ..
34 cd ..
35 svnadmin dump temp/repo > branch_rename_to_trunk.svndump
36 echo
37 echo 'Complete.'
38 echo 'You probably want to clean up temp now.'
39 echo 'Dump in branch_rename_to_trunk.svndump'
40 exit 0