comparison tests/fixtures/executebit.sh @ 125:c35f59aa200e

Move and complete execute bit conversion tests into test_fetch_exec.py
author Patrick Mezard <pmezard@gmail.com>
date Wed, 10 Dec 2008 11:03:18 -0600
parents
children
comparison
equal deleted inserted replaced
124:291925677a9f 125:c35f59aa200e
1 #!/bin/sh
2 #
3 # Generate executebit.svndump
4 #
5
6 mkdir temp
7 cd temp
8
9 mkdir project-orig
10 cd project-orig
11 mkdir trunk
12 cd ..
13
14 svnadmin create testrepo
15 svnurl=file://`pwd`/testrepo
16 svn import project-orig $svnurl -m "init project"
17
18 svn co $svnurl project
19 cd project/trunk
20 echo text > text1
21 echo text > text2
22 touch empty1
23 touch empty2
24 python -c "file('binary1', 'wb').write('a\x00b')"
25 python -c "file('binary2', 'wb').write('a\x00b')"
26 svn add text1 text2 binary1 binary2 empty1 empty2
27 svn propset svn:mime-type application/octet-stream binary1 binary2
28 svn propset svn:executable yes binary1 text1 empty1
29 svn ci -m init
30 # switch exec properties
31 svn propdel svn:executable binary1 text1 empty1
32 svn propset svn:executable yes binary2 text2 empty2
33 svn ci -m changeexec
34 cd ../..
35
36 svnadmin dump testrepo > ../executebit.svndump