More robust setup.py code generation
[stgit.git] / t / t2202-rebase-conflict.sh
blob4c99cbf529f1a070d1dedceafe11ca6f67cc24bc
1 #!/bin/sh
3 test_description='Test the "rebase" command with conflicts.'
5 . ./test-lib.sh
7 test_expect_success \
8 'Setup master' \
10 echo foo > file1 &&
11 git add file1 &&
12 git commit -m a
15 test_expect_success \
16 'Setup stack branch' \
18 stg branch --create stack &&
19 stg new p -m . &&
20 echo bar >> file1 &&
21 stg refresh
24 test_expect_success \
25 'Add commits to master' \
27 stg branch master &&
28 echo baz >> file1 &&
29 git add file1 &&
30 git commit -m b
33 test_expect_success \
34 'Rebase stack to master' \
36 stg branch stack &&
37 conflict stg rebase master &&
38 test "$(stg series --applied -c)" = "1"
41 test_done