Pass unknown protocols to external protocol handlers
[git/gitweb.git] / t / t9151 / make-svnmerge-dump
blob7e3da75f8602621f0f202fc812fad2feefccda28
1 #!/bin/sh
3 # this script sets up a Subversion repository for Makefile in the
4 # first ever git merge, as if it were done with svnmerge (SVN 1.5+)
7 rm -rf foo.svn foo
8 set -e
10 mkdir foo.svn
11 svnadmin create foo.svn
12 svn co file://`pwd`/foo.svn foo
14 cd foo
15 mkdir trunk
16 mkdir branches
17 svn add trunk branches
18 svn commit -m "Setup trunk and branches"
19 cd trunk
21 git cat-file blob 6683463e:Makefile > Makefile
22 svn add Makefile
24 echo "Committing ANCESTOR"
25 svn commit -m "ancestor"
26 cd ..
27 svn cp trunk branches/left
29 echo "Committing BRANCH POINT"
30 svn commit -m "make left branch"
31 svn cp trunk branches/right
33 echo "Committing other BRANCH POINT"
34 svn commit -m "make right branch"
35 cd branches/left/
37 #$sm init
38 #svn commit -m "init svnmerge"
40 git cat-file blob 5873b67e:Makefile > Makefile
41 echo "Committing BRANCH UPDATE 1"
42 svn commit -m "left update 1"
43 cd ../..
45 cd trunk
46 git cat-file blob 75118b13:Makefile > Makefile
47 echo "Committing TRUNK UPDATE"
48 svn commit -m "trunk update"
50 cd ../branches/left
51 git cat-file blob ff5ebe39:Makefile > Makefile
52 echo "Committing BRANCH UPDATE 2"
53 svn commit -m "left update 2"
55 git cat-file blob b5039db6:Makefile > Makefile
56 echo "Committing BRANCH UPDATE 3"
57 svn commit -m "left update 3"
59 # merge to trunk
61 cd ../..
62 svn update
63 cd trunk
65 svn merge ../branches/left --accept postpone
67 git cat-file blob b51ad431:Makefile > Makefile
69 svn resolved Makefile
71 svn commit -m "Merge trunk 1"
73 # create commits on both branches
75 cd ../branches/left
76 git cat-file blob ff5ebe39:Makefile > Makefile
77 echo "Committing BRANCH UPDATE 4"
78 svn commit -m "left update 4"
80 cd ../right
81 git cat-file blob b5039db6:Makefile > Makefile
82 echo "Committing other BRANCH UPDATE 1"
83 svn commit -m "right update 1"
85 # merge to trun again
87 cd ../..
88 svn update
89 cd trunk
91 svn merge ../branches/left --accept postpone
93 git cat-file blob b51ad431:Makefile > Makefile
95 svn resolved Makefile
97 svn commit -m "Merge trunk 2"
99 cd ../..
101 svnadmin dump foo.svn > svn-mergeinfo.dump
103 rm -rf foo foo.svn