Show More
@@ -15,7 +15,7 b' http://mercurial.selenic.com/wiki/Rebase' | |||||
15 | ''' |
|
15 | ''' | |
16 |
|
16 | |||
17 | from mercurial import hg, util, repair, merge, cmdutil, commands, bookmarks |
|
17 | from mercurial import hg, util, repair, merge, cmdutil, commands, bookmarks | |
18 | from mercurial import extensions, patch, scmutil, phases, obsolete |
|
18 | from mercurial import extensions, patch, scmutil, phases, obsolete, error | |
19 | from mercurial.commands import templateopts |
|
19 | from mercurial.commands import templateopts | |
20 | from mercurial.node import nullrev |
|
20 | from mercurial.node import nullrev | |
21 | from mercurial.lock import release |
|
21 | from mercurial.lock import release | |
@@ -269,8 +269,9 b' def rebase(ui, repo, **opts):' | |||||
269 | ui.setconfig('ui', 'forcemerge', opts.get('tool', '')) |
|
269 | ui.setconfig('ui', 'forcemerge', opts.get('tool', '')) | |
270 | stats = rebasenode(repo, rev, p1, state, collapsef) |
|
270 | stats = rebasenode(repo, rev, p1, state, collapsef) | |
271 | if stats and stats[3] > 0: |
|
271 | if stats and stats[3] > 0: | |
272 |
raise |
|
272 | raise error.InterventionRequired( | |
273 |
|
|
273 | _('unresolved conflicts (see hg ' | |
|
274 | 'resolve, then hg rebase --continue)')) | |||
274 | finally: |
|
275 | finally: | |
275 | ui.setconfig('ui', 'forcemerge', '') |
|
276 | ui.setconfig('ui', 'forcemerge', '') | |
276 | cmdutil.duplicatecopies(repo, rev, target) |
|
277 | cmdutil.duplicatecopies(repo, rev, target) |
@@ -55,7 +55,7 b' Conflicting rebase:' | |||||
55 | merging common |
|
55 | merging common | |
56 | warning: conflicts during merge. |
|
56 | warning: conflicts during merge. | |
57 | merging common incomplete! (edit conflicts, then use 'hg resolve --mark') |
|
57 | merging common incomplete! (edit conflicts, then use 'hg resolve --mark') | |
58 |
|
|
58 | unresolved conflicts (see hg resolve, then hg rebase --continue) | |
59 | [255] |
|
59 | [255] | |
60 |
|
60 | |||
61 | Abort: |
|
61 | Abort: | |
@@ -126,7 +126,7 b' Rebase and abort without generating new ' | |||||
126 | merging c |
|
126 | merging c | |
127 | warning: conflicts during merge. |
|
127 | warning: conflicts during merge. | |
128 | merging c incomplete! (edit conflicts, then use 'hg resolve --mark') |
|
128 | merging c incomplete! (edit conflicts, then use 'hg resolve --mark') | |
129 |
|
|
129 | unresolved conflicts (see hg resolve, then hg rebase --continue) | |
130 | [255] |
|
130 | [255] | |
131 |
|
131 | |||
132 | $ hg tglog |
|
132 | $ hg tglog |
@@ -141,7 +141,7 b' rebase --continue with bookmarks present' | |||||
141 | merging c |
|
141 | merging c | |
142 | warning: conflicts during merge. |
|
142 | warning: conflicts during merge. | |
143 | merging c incomplete! (edit conflicts, then use 'hg resolve --mark') |
|
143 | merging c incomplete! (edit conflicts, then use 'hg resolve --mark') | |
144 |
|
|
144 | unresolved conflicts (see hg resolve, then hg rebase --continue) | |
145 | [255] |
|
145 | [255] | |
146 | $ echo 'c' > c |
|
146 | $ echo 'c' > c | |
147 | $ hg resolve --mark c |
|
147 | $ hg resolve --mark c |
@@ -69,7 +69,7 b' Rebasing B onto E - check keep: and phas' | |||||
69 | merging A |
|
69 | merging A | |
70 | warning: conflicts during merge. |
|
70 | warning: conflicts during merge. | |
71 | merging A incomplete! (edit conflicts, then use 'hg resolve --mark') |
|
71 | merging A incomplete! (edit conflicts, then use 'hg resolve --mark') | |
72 |
|
|
72 | unresolved conflicts (see hg resolve, then hg rebase --continue) | |
73 | [255] |
|
73 | [255] | |
74 |
|
74 | |||
75 | Solve the conflict and go on: |
|
75 | Solve the conflict and go on: | |
@@ -122,7 +122,7 b' Rebase F onto E - check keepbranches:' | |||||
122 | merging A |
|
122 | merging A | |
123 | warning: conflicts during merge. |
|
123 | warning: conflicts during merge. | |
124 | merging A incomplete! (edit conflicts, then use 'hg resolve --mark') |
|
124 | merging A incomplete! (edit conflicts, then use 'hg resolve --mark') | |
125 |
|
|
125 | unresolved conflicts (see hg resolve, then hg rebase --continue) | |
126 | [255] |
|
126 | [255] | |
127 |
|
127 | |||
128 | Solve the conflict and go on: |
|
128 | Solve the conflict and go on: |
@@ -65,7 +65,7 b' Conflicting rebase:' | |||||
65 | merging common |
|
65 | merging common | |
66 | warning: conflicts during merge. |
|
66 | warning: conflicts during merge. | |
67 | merging common incomplete! (edit conflicts, then use 'hg resolve --mark') |
|
67 | merging common incomplete! (edit conflicts, then use 'hg resolve --mark') | |
68 |
|
|
68 | unresolved conflicts (see hg resolve, then hg rebase --continue) | |
69 | [255] |
|
69 | [255] | |
70 |
|
70 | |||
71 | Try to continue without solving the conflict: |
|
71 | Try to continue without solving the conflict: |
@@ -372,7 +372,7 b' Ensure --continue restores a correct sta' | |||||
372 | merging H |
|
372 | merging H | |
373 | warning: conflicts during merge. |
|
373 | warning: conflicts during merge. | |
374 | merging H incomplete! (edit conflicts, then use 'hg resolve --mark') |
|
374 | merging H incomplete! (edit conflicts, then use 'hg resolve --mark') | |
375 |
|
|
375 | unresolved conflicts (see hg resolve, then hg rebase --continue) | |
376 | [255] |
|
376 | [255] | |
377 | $ hg resolve --all -t internal:local |
|
377 | $ hg resolve --all -t internal:local | |
378 | $ hg rebase -c |
|
378 | $ hg rebase -c |
@@ -61,7 +61,7 b' Rebasing B onto E:' | |||||
61 | merging A |
|
61 | merging A | |
62 | warning: conflicts during merge. |
|
62 | warning: conflicts during merge. | |
63 | merging A incomplete! (edit conflicts, then use 'hg resolve --mark') |
|
63 | merging A incomplete! (edit conflicts, then use 'hg resolve --mark') | |
64 |
|
|
64 | unresolved conflicts (see hg resolve, then hg rebase --continue) | |
65 | [255] |
|
65 | [255] | |
66 |
|
66 | |||
67 | Force a commit on C during the interruption: |
|
67 | Force a commit on C during the interruption: | |
@@ -97,7 +97,7 b' Resume the rebasing:' | |||||
97 | merging A |
|
97 | merging A | |
98 | warning: conflicts during merge. |
|
98 | warning: conflicts during merge. | |
99 | merging A incomplete! (edit conflicts, then use 'hg resolve --mark') |
|
99 | merging A incomplete! (edit conflicts, then use 'hg resolve --mark') | |
100 |
|
|
100 | unresolved conflicts (see hg resolve, then hg rebase --continue) | |
101 | [255] |
|
101 | [255] | |
102 |
|
102 | |||
103 | Solve the conflict and go on: |
|
103 | Solve the conflict and go on: | |
@@ -151,7 +151,7 b' Rebasing B onto E:' | |||||
151 | merging A |
|
151 | merging A | |
152 | warning: conflicts during merge. |
|
152 | warning: conflicts during merge. | |
153 | merging A incomplete! (edit conflicts, then use 'hg resolve --mark') |
|
153 | merging A incomplete! (edit conflicts, then use 'hg resolve --mark') | |
154 |
|
|
154 | unresolved conflicts (see hg resolve, then hg rebase --continue) | |
155 | [255] |
|
155 | [255] | |
156 |
|
156 | |||
157 | Force a commit on B' during the interruption: |
|
157 | Force a commit on B' during the interruption: | |
@@ -222,7 +222,7 b' Rebasing B onto E:' | |||||
222 | merging A |
|
222 | merging A | |
223 | warning: conflicts during merge. |
|
223 | warning: conflicts during merge. | |
224 | merging A incomplete! (edit conflicts, then use 'hg resolve --mark') |
|
224 | merging A incomplete! (edit conflicts, then use 'hg resolve --mark') | |
225 |
|
|
225 | unresolved conflicts (see hg resolve, then hg rebase --continue) | |
226 | [255] |
|
226 | [255] | |
227 |
|
227 | |||
228 | Change phase on B and B' |
|
228 | Change phase on B and B' |
@@ -108,7 +108,7 b' already has one local mq patch' | |||||
108 | $ hg up -q qtip |
|
108 | $ hg up -q qtip | |
109 |
|
109 | |||
110 | $ HGMERGE=internal:fail hg rebase |
|
110 | $ HGMERGE=internal:fail hg rebase | |
111 |
|
|
111 | unresolved conflicts (see hg resolve, then hg rebase --continue) | |
112 | [255] |
|
112 | [255] | |
113 |
|
113 | |||
114 | $ HGMERGE=internal:local hg resolve --all |
|
114 | $ HGMERGE=internal:local hg resolve --all |
@@ -63,7 +63,7 b' Rebase - generate a conflict:' | |||||
63 | merging f |
|
63 | merging f | |
64 | warning: conflicts during merge. |
|
64 | warning: conflicts during merge. | |
65 | merging f incomplete! (edit conflicts, then use 'hg resolve --mark') |
|
65 | merging f incomplete! (edit conflicts, then use 'hg resolve --mark') | |
66 |
|
|
66 | unresolved conflicts (see hg resolve, then hg rebase --continue) | |
67 | [255] |
|
67 | [255] | |
68 |
|
68 | |||
69 | Fix the 1st conflict: |
|
69 | Fix the 1st conflict: | |
@@ -74,7 +74,7 b' Fix the 1st conflict:' | |||||
74 | merging f |
|
74 | merging f | |
75 | warning: conflicts during merge. |
|
75 | warning: conflicts during merge. | |
76 | merging f incomplete! (edit conflicts, then use 'hg resolve --mark') |
|
76 | merging f incomplete! (edit conflicts, then use 'hg resolve --mark') | |
77 |
|
|
77 | unresolved conflicts (see hg resolve, then hg rebase --continue) | |
78 | [255] |
|
78 | [255] | |
79 |
|
79 | |||
80 | Fix the 2nd conflict: |
|
80 | Fix the 2nd conflict: |
@@ -416,7 +416,7 b' Test --tool parameter:' | |||||
416 | $ cd b3 |
|
416 | $ cd b3 | |
417 |
|
417 | |||
418 | $ hg rebase -s 2 -d 1 --tool internal:fail |
|
418 | $ hg rebase -s 2 -d 1 --tool internal:fail | |
419 |
|
|
419 | unresolved conflicts (see hg resolve, then hg rebase --continue) | |
420 | [255] |
|
420 | [255] | |
421 |
|
421 | |||
422 | $ hg resolve -l |
|
422 | $ hg resolve -l |
General Comments 0
You need to be logged in to leave comments.
Login now