comparison tests/fixtures/emptyrepo2.sh @ 938:f9014e28721b

editor: start separating svn copies from open files The separation is not complete as we still have to update the RevisionData deleted set when registering svn copies. This will be cleaned up once open files are themselves separated from RevisionData. Copied symlinks are also being prefixed with 'link '.
author Patrick Mezard <patrick@mezard.eu>
date Wed, 03 Oct 2012 21:27:02 +0200
parents
children
comparison
equal deleted inserted replaced
937:fb6f6b7fa5a5 938:f9014e28721b
1 #!/bin/sh
2 #
3 # Create emptyrepo2.svndump
4 #
5 # The generated repository contains a sequence of empty revisions
6 # created with a combination of svnsync and filtering
7
8 mkdir temp
9 cd temp
10
11 mkdir project-orig
12 cd project-orig
13 mkdir -p sub/trunk other
14 echo a > other/a
15 cd ..
16
17 svnadmin create testrepo
18 svnurl=file://`pwd`/testrepo
19 svn import project-orig $svnurl -m init
20
21 svn co $svnurl project
22 cd project
23 echo a >> other/a
24 svn ci -m othera
25 echo a >> other/a
26 svn ci -m othera2
27 echo b > sub/trunk/a
28 svn add sub/trunk/a
29 svn ci -m adda
30 cd ..
31
32 svnadmin create testrepo2
33 cat > testrepo2/hooks/pre-revprop-change <<EOF
34 #!/bin/sh
35 exit 0
36 EOF
37 chmod +x testrepo2/hooks/pre-revprop-change
38
39 svnurl2=file://`pwd`/testrepo2
40 svnsync init --username svnsync $svnurl2 $svnurl/sub
41 svnsync sync $svnurl2
42
43 svnadmin dump testrepo2 > ../emptyrepo2.svndump
44