comparison tests/fixtures/externals.sh @ 183:1c46ad3f56aa

test_externals: test branch copy, use absolute externals
author Patrick Mezard <pmezard@gmail.com>
date Wed, 14 Jan 2009 23:17:12 -0600
parents f80132c5fea5
children d3ea6c98a086
comparison
equal deleted inserted replaced
182:47d25d61abfa 183:1c46ad3f56aa
29 cd ../trunk 29 cd ../trunk
30 # Add an external reference 30 # Add an external reference
31 echo a > a 31 echo a > a
32 svn add a 32 svn add a
33 cat > externals <<EOF 33 cat > externals <<EOF
34 ../externals/project1 deps/project1 34 ^/externals/project1 deps/project1
35 EOF 35 EOF
36 svn propset -F externals svn:externals . 36 svn propset -F externals svn:externals .
37 svn ci -m "set externals on ." 37 svn ci -m "set externals on ."
38 # Add another one 38 # Add another one
39 cat > externals <<EOF 39 cat > externals <<EOF
40 ../externals/project1 deps/project1 40 ^/externals/project1 deps/project1
41 ../externals/project2 deps/project2 41 ^/externals/project2 deps/project2
42 EOF 42 EOF
43 svn propset -F externals svn:externals . 43 svn propset -F externals svn:externals .
44 svn ci -m "update externals on ." 44 svn ci -m "update externals on ."
45 # Suppress an external and add one on a subdir 45 # Suppress an external and add one on a subdir
46 cat > externals <<EOF 46 cat > externals <<EOF
47 ../externals/project2 deps/project2 47 ^/externals/project2 deps/project2
48 EOF 48 EOF
49 svn propset -F externals svn:externals . 49 svn propset -F externals svn:externals .
50 mkdir subdir 50 mkdir subdir
51 mkdir subdir2 51 mkdir subdir2
52 svn add subdir subdir2 52 svn add subdir subdir2
53 cat > externals <<EOF 53 cat > externals <<EOF
54 ../externals/project1 deps/project1 54 ^/externals/project1 deps/project1
55 EOF 55 EOF
56 svn propset -F externals svn:externals subdir subdir2 56 svn propset -F externals svn:externals subdir subdir2
57 svn ci -m "add on subdir" 57 svn ci -m "add on subdir"
58 # Test branch with externals
59 svn up
60 cd ../branches
61 svn copy ../trunk branch1
62 svn propdel svn:externals branch1/subdir2
63 svn ci -m 'externals in subtree'
64 cd ../trunk
58 # Suppress the subdirectory 65 # Suppress the subdirectory
59 svn rm subdir 66 svn rm --force subdir
60 svn ci -m 'remove externals subdir' 67 svn ci -m 'remove externals subdir'
61 # Remove the property on subdir2 68 # Remove the property on subdir2
62 svn propdel svn:externals subdir2 69 svn propdel svn:externals subdir2
63 svn ci -m 'remove externals subdir2' 70 svn ci -m 'remove externals subdir2'
64 cd ../.. 71 cd ../..