comparison tests/fixtures/renames.sh @ 68:e0c86ebe05e3

test_fetch_renames: test copy of deleted stuff from the past
author Patrick Mezard <pmezard@gmail.com>
date Wed, 05 Nov 2008 13:37:08 +0100
parents e319c9168910
children 63ece4ea25c9
comparison
equal deleted inserted replaced
67:e319c9168910 68:e0c86ebe05e3
21 echo a > a 21 echo a > a
22 echo b > b 22 echo b > b
23 mkdir -p da/db 23 mkdir -p da/db
24 echo c > da/daf 24 echo c > da/daf
25 echo d > da/db/dbf 25 echo d > da/db/dbf
26 svn add a b da 26 echo deleted > deletedfile
27 mkdir deleteddir
28 echo deleteddir > deleteddir/f
29 svn add a b da deletedfile deleteddir
27 svn ci -m "add a and b" 30 svn ci -m "add a and b"
31 svn rm deletedfile
32 svn rm deleteddir
33 svn ci -m "delete files and dirs"
28 cd ../branches 34 cd ../branches
29 svn cp ../trunk branch1 35 svn cp ../trunk branch1
30 svn ci -m "create branch1" 36 svn ci -m "create branch1"
31 cd branch1 37 cd branch1
32 echo c > c 38 echo c > c
51 svn ci -m "rename and copy a, b and da" 57 svn ci -m "rename and copy a, b and da"
52 cd trunk 58 cd trunk
53 # Copy across branch 59 # Copy across branch
54 svn cp ../branches/branch1/c c 60 svn cp ../branches/branch1/c c
55 svn ci -m "copy b from branch1" 61 svn ci -m "copy b from branch1"
62 # Copy deleted stuff from the past
63 svn cp $svnurl/trunk/deletedfile@2 deletedfile
64 svn cp $svnurl/trunk/deleteddir@2 deleteddir
65 svn ci -m "copy stuff from the past"
56 cd ../.. 66 cd ../..
57 67
58 svnadmin dump testrepo > ../renames.svndump 68 svnadmin dump testrepo > ../renames.svndump