Show More
@@ -0,0 +1,78 b'' | |||||
|
1 | $ cat >> $HGRCPATH <<EOF | |||
|
2 | > [extensions] | |||
|
3 | > rebase= | |||
|
4 | > [phases] | |||
|
5 | > publish=False | |||
|
6 | > [merge] | |||
|
7 | > EOF | |||
|
8 | ||||
|
9 | $ hg init repo | |||
|
10 | $ cd repo | |||
|
11 | $ echo a > a | |||
|
12 | $ echo b > b | |||
|
13 | $ hg commit -qAm ab | |||
|
14 | $ echo c >> a | |||
|
15 | $ echo c >> b | |||
|
16 | $ hg commit -qAm c | |||
|
17 | $ hg up -q ".^" | |||
|
18 | $ echo d >> a | |||
|
19 | $ echo d >> b | |||
|
20 | $ hg commit -qAm d | |||
|
21 | ||||
|
22 | Testing on-failure=continue | |||
|
23 | $ echo on-failure=continue >> $HGRCPATH | |||
|
24 | $ hg rebase -s 1 -d 2 --tool false | |||
|
25 | rebasing 1:1f28a51c3c9b "c" | |||
|
26 | merging a | |||
|
27 | merging b | |||
|
28 | merging a failed! | |||
|
29 | merging b failed! | |||
|
30 | unresolved conflicts (see hg resolve, then hg rebase --continue) | |||
|
31 | [1] | |||
|
32 | ||||
|
33 | $ hg resolve --list | |||
|
34 | U a | |||
|
35 | U b | |||
|
36 | ||||
|
37 | $ hg rebase --abort | |||
|
38 | rebase aborted | |||
|
39 | ||||
|
40 | Testing on-failure=halt | |||
|
41 | $ echo on-failure=halt >> $HGRCPATH | |||
|
42 | $ hg rebase -s 1 -d 2 --tool false | |||
|
43 | rebasing 1:1f28a51c3c9b "c" | |||
|
44 | merging a | |||
|
45 | merging b | |||
|
46 | merging a failed! | |||
|
47 | merging b failed! | |||
|
48 | unresolved conflicts (see hg resolve, then hg rebase --continue) | |||
|
49 | [1] | |||
|
50 | ||||
|
51 | $ hg resolve --list | |||
|
52 | U a | |||
|
53 | U b | |||
|
54 | ||||
|
55 | $ hg rebase --abort | |||
|
56 | rebase aborted | |||
|
57 | ||||
|
58 | Testing on-failure=prompt | |||
|
59 | $ echo on-failure=prompt >> $HGRCPATH | |||
|
60 | $ cat <<EOS | hg rebase -s 1 -d 2 --tool false --config ui.interactive=1 | |||
|
61 | > y | |||
|
62 | > n | |||
|
63 | > EOS | |||
|
64 | rebasing 1:1f28a51c3c9b "c" | |||
|
65 | merging a | |||
|
66 | merging b | |||
|
67 | merging a failed! | |||
|
68 | merging b failed! | |||
|
69 | unresolved conflicts (see hg resolve, then hg rebase --continue) | |||
|
70 | [1] | |||
|
71 | ||||
|
72 | $ hg resolve --list | |||
|
73 | U a | |||
|
74 | U b | |||
|
75 | ||||
|
76 | $ hg rebase --abort | |||
|
77 | rebase aborted | |||
|
78 |
General Comments 0
You need to be logged in to leave comments.
Login now