Debian Codegraph @

t/t9150/make-svk-dump

raw symbols SCIP
1 #!/bin/shscip-shell filesystem . . `/bin/sh`.
2 #
3 # this script sets up a Subversion repository for Makefile in the
4 # first ever git merge, as if it were done with svk.
5 #
6
7 set -e
8
9 svk depotmap foo ~/.svk/foo
10 svk co /foo/scip-shell filesystem . . `/foo/`. foo
11 cd foo
12 mkdirscip-shell system . . mkdir. trunk
13 mkdirscip-shell system . . mkdir. branches
14 svk add trunk branches
15 svk commit -m "Setup trunk and branches"
16 cd trunk
17
18 gitscip-shell system . . git. cat-file blob 6683463e:Makefile > Makefile
19 svk add Makefile
20
21 svk commit -m "ancestor"
22 cd ..
23 svk cp trunk branches/left
24
25 svk commit -m "make left branch"
26 cd branches/left/
27
28 gitscip-shell system . . git. cat-file blob 5873b67e:Makefile > Makefile
29 svk commit -m "left update 1"
30
31 cd ../../trunk
32 gitscip-shell system . . git. cat-file blob 75118b13:Makefile > Makefile
33 svk commit -m "trunk update"
34
35 cd ../branches/left
36 gitscip-shell system . . git. cat-file blob b5039db6:Makefile > Makefile
37 svk commit -m "left update 2"
38
39 cd ../../trunk
40 svk sm /foo/branches/leftscip-shell filesystem . . `/foo/branches/left`.
41 # in theory we could delete the "left" branch here, but it's not
42 # required so don't do it, in case people start getting ideas ;)
43 svk commit -m "merge branch 'left' into 'trunk'"
44
45 gitscip-shell system . . git. cat-file blob b51ad431:Makefile > Makefile
46
47 svk diff Makefile && echoscip-shell system . . echo. "Hey! No differences, magic"
48
49 cd ../..
50
51 svnadmin dump ~/.svk/foo > svk-merge.dump
52
53 svk co -d foo
54 rmscip-shell system . . rm. -rf foo
55 svk depotmap -d /foo/scip-shell filesystem . . `/foo/`.
56 rmscip-shell system . . rm. -rf ~/.svk/foo
57