comparison tests/fixtures/filecase.sh @ 132:3a9d6cd18332

test_fetch_renames: test file and directory case changes
author Patrick Mezard <pmezard@gmail.com>
date Wed, 10 Dec 2008 11:03:23 -0600
parents
children
comparison
equal deleted inserted replaced
131:4d42dbbb5127 132:3a9d6cd18332
1 #!/bin/sh
2 #
3 # Generate filecase.svndump
4 # WARNING: this script must be run on a case-sensitive file system
5 #
6
7 mkdir temp
8 cd temp
9
10 mkdir project-orig
11 cd project-orig
12 mkdir trunk
13 cd ..
14
15 svnadmin create testrepo
16 svnurl=file://`pwd`/testrepo
17 svn import project-orig $svnurl -m "init project"
18
19 svn co $svnurl project
20 cd project/trunk
21 # Test files and directories differing in case only
22 echo a > a
23 echo A > A
24 echo b > b
25 mkdir d
26 echo a > d/a
27 mkdir D
28 echo a > D/a
29 mkdir e
30 echo a > e/a
31 mkdir f
32 echo a > f/a
33 echo F > F
34 svn add a A b d D e f F
35 svn ci -m 'add files'
36 # Rename files and directories, changing only their case
37 svn mv b B
38 svn mv d/a d/A
39 svn mv e E
40 svn ci -m 'change case'
41 cd ../..
42
43 svnadmin dump testrepo > ../filecase.svndump