comparison tests/fixtures/renametagdir.sh @ 521:839734dfb5c7

Handle tag subdirectory as tag in replay mode (issue119) Original version by Dirkjan Ochtman <dirkjan@ochtman.nl>
author Patrick Mezard <pmezard@gmail.com>
date Fri, 22 Jan 2010 18:01:19 -0600
parents
children d380e7e4175a
comparison
equal deleted inserted replaced
520:5a5b90a6d522 521:839734dfb5c7
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/test
20 svn ci -m 'Branch.'
21 svn up
22
23 cd ..
24 svn cp -m 'First tag.' $REPO/branches/test@3 $REPO/tags/test-0.1
25 svn cp -m 'Weird tag.' $REPO/branches/test@3 $REPO/tags/test-0.1/test
26
27 cd ..
28 svnadmin dump temp/repo > renametagdir.svndump
29 echo
30 echo 'Complete.'
31 echo 'You probably want to clean up temp now.'
32 echo 'Dump in renametagdir.svndump'
33 exit 0