chiark / gitweb /
Merge branch 'wip.tutorials' into wip
[dgit.git] / tests / setup / examplegit
1 #!/bin/bash
2 set -e
3 . tests/lib
4
5 suitespecs+=' stable testing'
6
7 t-tstunt-parsechangelog
8
9 t-prep-newpackage example 1.0
10
11 cd $p
12
13 revision=1
14
15 push-to () {
16         t-refs-same-start
17         t-ref-head
18         t-dgit build
19         t-dgit push --new $2
20         t-pushed-good $1 $2
21         t-archive-process-incoming $2
22 }
23
24 echo ancestor >which
25 git add which
26 t-commit Ancestor '' stable
27 push-to master stable
28
29 git checkout -b stable
30
31 echo stable >which
32 git add which
33 t-commit Stable '' stable
34 push-to stable stable
35
36 git checkout master
37
38 majorv=2
39 revision=0
40
41 echo sid >which
42 git add which
43 t-commit Sid
44 push-to master sid
45
46 echo sid-again >>which
47 git add which
48 t-commit Sid
49 push-to master sid
50
51 t-setup-done 'p v suitespecs majorv revision' "aq git mirror $p"
52
53 echo ok.