Show More
@@ -223,6 +223,21 b' def _imerge(repo, mynode, orig, fcd, fco' | |||||
223 | return True, r |
|
223 | return True, r | |
224 | return False, 0 |
|
224 | return False, 0 | |
225 |
|
225 | |||
|
226 | @internaltool('merge3', True, | |||
|
227 | _("merging %s incomplete! " | |||
|
228 | "(edit conflicts, then use 'hg resolve --mark')\n")) | |||
|
229 | def _imerge3(repo, mynode, orig, fcd, fco, fca, toolconf, files, labels=None): | |||
|
230 | """ | |||
|
231 | Uses the internal non-interactive simple merge algorithm for merging | |||
|
232 | files. It will fail if there are any conflicts and leave markers in | |||
|
233 | the partially merged file. Marker will have three sections, one from each | |||
|
234 | side of the merge and one for the base content.""" | |||
|
235 | if not labels: | |||
|
236 | labels = _defaultconflictlabels | |||
|
237 | if len(labels) < 3: | |||
|
238 | labels.append('base') | |||
|
239 | return _imerge(repo, mynode, orig, fcd, fco, fca, toolconf, files, labels) | |||
|
240 | ||||
226 | @internaltool('tagmerge', True, |
|
241 | @internaltool('tagmerge', True, | |
227 | _("automatic tag merging of %s failed! " |
|
242 | _("automatic tag merging of %s failed! " | |
228 | "(use 'hg resolve --tool internal:merge' or another merge " |
|
243 | "(use 'hg resolve --tool internal:merge' or another merge " |
@@ -198,3 +198,37 b' Verify basic conflict markers' | |||||
198 | 5 |
|
198 | 5 | |
199 | >>>>>>> other |
|
199 | >>>>>>> other | |
200 | Hop we are done. |
|
200 | Hop we are done. | |
|
201 | ||||
|
202 | internal:merge3 | |||
|
203 | ||||
|
204 | $ hg up -q --clean . | |||
|
205 | ||||
|
206 | $ hg merge 1 --tool internal:merge3 | |||
|
207 | merging a | |||
|
208 | warning: conflicts during merge. | |||
|
209 | merging a incomplete! (edit conflicts, then use 'hg resolve --mark') | |||
|
210 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved | |||
|
211 | use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon | |||
|
212 | [1] | |||
|
213 | $ cat a | |||
|
214 | Small Mathematical Series. | |||
|
215 | <<<<<<< local | |||
|
216 | 1 | |||
|
217 | 2 | |||
|
218 | 3 | |||
|
219 | 6 | |||
|
220 | 8 | |||
|
221 | ||||||| base | |||
|
222 | One | |||
|
223 | Two | |||
|
224 | Three | |||
|
225 | Four | |||
|
226 | Five | |||
|
227 | ======= | |||
|
228 | 1 | |||
|
229 | 2 | |||
|
230 | 3 | |||
|
231 | 4 | |||
|
232 | 5 | |||
|
233 | >>>>>>> other | |||
|
234 | Hop we are done. |
General Comments 0
You need to be logged in to leave comments.
Login now