chiark / gitweb /
git-debrebase: merge: gdr-merge-conflicts test: New test
[dgit.git] / tests / tests / gdr-merge-conflicts
1 #!/bin/bash
2 set -e
3 autoimport=
4 . tests/lib
5
6 t-dependencies NO-DGIT GDR
7
8 t-tstunt-parsechangelog
9 t-setup-import gdr-convert-gbp-noarchive
10
11 : 'do a simple test'
12
13 cd $p
14
15 t-gdr-prep-new-upstream 2.1
16 git tag v2.1 upstream
17
18 t-some-changes before
19 t-git-debrebase quick
20
21 git checkout -b other
22 t-some-changes other '' -other
23
24 git checkout other
25 echo other-upstream-confict >>docs/README
26 git commit -m 'other-upstream-conflict' docs/README
27
28 t-git-debrebase quick
29
30 git checkout master
31 t-git-debrebase new-upstream 2.1
32
33 t-merge-conflicted-stripping-conflict-markers other docs/README
34
35 export GIT_DEBREBASE_EXPERIMENTAL_MERGE=1
36
37 t-expect-fail F:'docs/README' \
38 t-git-debrebase
39
40 # xxx want to test a nomerge from first walk analysis half
41 # xxx want to check wrecknotes appear
42
43 t-ok