131 (this also tests that editor is not invoked if '--edit' is not specified) |
131 (this also tests that editor is not invoked if '--edit' is not specified) |
132 |
132 |
133 $ hg graft 1 5 4 3 'merge()' 2 -n |
133 $ hg graft 1 5 4 3 'merge()' 2 -n |
134 skipping ungraftable merge revision 6 |
134 skipping ungraftable merge revision 6 |
135 skipping revision 2 (already grafted to 7) |
135 skipping revision 2 (already grafted to 7) |
136 grafting revision 1 |
136 grafting 1:5d205f8b35b6 "1" |
137 grafting revision 5 |
137 grafting 5:97f8bfe72746 "5" |
138 grafting revision 4 |
138 grafting 4:9c233e8e184d "4" |
139 grafting revision 3 |
139 grafting 3:4c60f11aa304 "3" |
140 |
140 |
141 $ HGEDITOR=cat hg graft 1 5 4 3 'merge()' 2 --debug |
141 $ HGEDITOR=cat hg graft 1 5 4 3 'merge()' 2 --debug |
142 skipping ungraftable merge revision 6 |
142 skipping ungraftable merge revision 6 |
143 scanning for duplicate grafts |
143 scanning for duplicate grafts |
144 skipping revision 2 (already grafted to 7) |
144 skipping revision 2 (already grafted to 7) |
145 grafting revision 1 |
145 grafting 1:5d205f8b35b6 "1" |
146 searching for copies back to rev 1 |
146 searching for copies back to rev 1 |
147 unmatched files in local: |
147 unmatched files in local: |
148 b |
148 b |
149 all copies found (* = to merge, ! = divergent, % = renamed and deleted): |
149 all copies found (* = to merge, ! = divergent, % = renamed and deleted): |
150 src: 'a' -> dst: 'b' * |
150 src: 'a' -> dst: 'b' * |
158 picked tool 'internal:merge' for b (binary False symlink False) |
158 picked tool 'internal:merge' for b (binary False symlink False) |
159 merging b and a to b |
159 merging b and a to b |
160 my b@ef0ef43d49e7+ other a@5d205f8b35b6 ancestor a@68795b066622 |
160 my b@ef0ef43d49e7+ other a@5d205f8b35b6 ancestor a@68795b066622 |
161 premerge successful |
161 premerge successful |
162 b |
162 b |
163 grafting revision 5 |
163 grafting 5:97f8bfe72746 "5" |
164 searching for copies back to rev 1 |
164 searching for copies back to rev 1 |
165 resolving manifests |
165 resolving manifests |
166 branchmerge: True, force: True, partial: False |
166 branchmerge: True, force: True, partial: False |
167 ancestor: 4c60f11aa304, local: 6b9e5368ca4e+, remote: 97f8bfe72746 |
167 ancestor: 4c60f11aa304, local: 6b9e5368ca4e+, remote: 97f8bfe72746 |
168 e: remote is newer -> g |
168 e: remote is newer -> g |
169 getting e |
169 getting e |
170 updating: e 1/1 files (100.00%) |
170 updating: e 1/1 files (100.00%) |
171 b: remote unchanged -> k |
171 b: remote unchanged -> k |
172 e |
172 e |
173 grafting revision 4 |
173 grafting 4:9c233e8e184d "4" |
174 searching for copies back to rev 1 |
174 searching for copies back to rev 1 |
175 resolving manifests |
175 resolving manifests |
176 branchmerge: True, force: True, partial: False |
176 branchmerge: True, force: True, partial: False |
177 ancestor: 4c60f11aa304, local: 1905859650ec+, remote: 9c233e8e184d |
177 ancestor: 4c60f11aa304, local: 1905859650ec+, remote: 9c233e8e184d |
178 preserving e for resolve of e |
178 preserving e for resolve of e |
214 $ hg graft 1 5 4 3 'merge()' 2 |
214 $ hg graft 1 5 4 3 'merge()' 2 |
215 skipping ungraftable merge revision 6 |
215 skipping ungraftable merge revision 6 |
216 skipping revision 2 (already grafted to 7) |
216 skipping revision 2 (already grafted to 7) |
217 skipping revision 1 (already grafted to 8) |
217 skipping revision 1 (already grafted to 8) |
218 skipping revision 5 (already grafted to 9) |
218 skipping revision 5 (already grafted to 9) |
219 grafting revision 4 |
219 grafting 4:9c233e8e184d "4" |
220 merging e |
220 merging e |
221 warning: conflicts during merge. |
221 warning: conflicts during merge. |
222 merging e incomplete! (edit conflicts, then use 'hg resolve --mark') |
222 merging e incomplete! (edit conflicts, then use 'hg resolve --mark') |
223 abort: unresolved conflicts, can't continue |
223 abort: unresolved conflicts, can't continue |
224 (use hg resolve and hg graft --continue) |
224 (use hg resolve and hg graft --continue) |
225 [255] |
225 [255] |
226 |
226 |
227 Continue without resolve should fail: |
227 Continue without resolve should fail: |
228 |
228 |
229 $ hg graft -c |
229 $ hg graft -c |
230 grafting revision 4 |
230 grafting 4:9c233e8e184d "4" |
231 abort: unresolved merge conflicts (see hg help resolve) |
231 abort: unresolved merge conflicts (see hg help resolve) |
232 [255] |
232 [255] |
233 |
233 |
234 Fix up: |
234 Fix up: |
235 |
235 |
402 |
402 |
403 Resolve conflicted graft with rename |
403 Resolve conflicted graft with rename |
404 $ echo c > a |
404 $ echo c > a |
405 $ hg ci -m 10 |
405 $ hg ci -m 10 |
406 $ hg graft 2 --tool internal:fail |
406 $ hg graft 2 --tool internal:fail |
407 grafting revision 2 |
407 grafting 2:5c095ad7e90f "2" |
408 abort: unresolved conflicts, can't continue |
408 abort: unresolved conflicts, can't continue |
409 (use hg resolve and hg graft --continue) |
409 (use hg resolve and hg graft --continue) |
410 [255] |
410 [255] |
411 $ hg resolve --all |
411 $ hg resolve --all |
412 merging a and b to b |
412 merging a and b to b |
413 (no more unresolved files) |
413 (no more unresolved files) |
414 $ hg graft -c |
414 $ hg graft -c |
415 grafting revision 2 |
415 grafting 2:5c095ad7e90f "2" |
416 $ hg export tip --git |
416 $ hg export tip --git |
417 # HG changeset patch |
417 # HG changeset patch |
418 # User test |
418 # User test |
419 # Date 0 0 |
419 # Date 0 0 |
420 # Thu Jan 01 00:00:00 1970 +0000 |
420 # Thu Jan 01 00:00:00 1970 +0000 |
642 |
642 |
643 $ hg graft 'origin(13) or destination(origin(13))' |
643 $ hg graft 'origin(13) or destination(origin(13))' |
644 skipping ancestor revision 21 |
644 skipping ancestor revision 21 |
645 skipping ancestor revision 22 |
645 skipping ancestor revision 22 |
646 skipping revision 2 (already grafted to 22) |
646 skipping revision 2 (already grafted to 22) |
647 grafting revision 7 |
647 grafting 7:ef0ef43d49e7 "2" |
648 grafting revision 13 |
648 grafting 13:9db0f28fd374 "2" |
649 grafting revision 19 |
649 grafting 19:9627f653b421 "2" |
650 merging b |
650 merging b |
651 |
651 |
652 graft with --force (still doesn't graft merges) |
652 graft with --force (still doesn't graft merges) |
653 |
653 |
654 $ hg graft 19 0 6 |
654 $ hg graft 19 0 6 |
656 skipping ancestor revision 0 |
656 skipping ancestor revision 0 |
657 skipping already grafted revision 19 (22 also has origin 2) |
657 skipping already grafted revision 19 (22 also has origin 2) |
658 [255] |
658 [255] |
659 $ hg graft 19 0 6 --force |
659 $ hg graft 19 0 6 --force |
660 skipping ungraftable merge revision 6 |
660 skipping ungraftable merge revision 6 |
661 grafting revision 19 |
661 grafting 19:9627f653b421 "2" |
662 merging b |
662 merging b |
663 grafting revision 0 |
663 grafting 0:68795b066622 "0" |
664 |
664 |
665 graft --force after backout |
665 graft --force after backout |
666 |
666 |
667 $ echo abc > a |
667 $ echo abc > a |
668 $ hg ci -m 28 |
668 $ hg ci -m 28 |
671 changeset 29:484c03b8dfa4 backs out changeset 28:6c56f0f7f033 |
671 changeset 29:484c03b8dfa4 backs out changeset 28:6c56f0f7f033 |
672 $ hg graft 28 |
672 $ hg graft 28 |
673 skipping ancestor revision 28 |
673 skipping ancestor revision 28 |
674 [255] |
674 [255] |
675 $ hg graft 28 --force |
675 $ hg graft 28 --force |
676 grafting revision 28 |
676 grafting 28:6c56f0f7f033 "28" |
677 merging a |
677 merging a |
678 $ cat a |
678 $ cat a |
679 abc |
679 abc |
680 |
680 |
681 graft --continue after --force |
681 graft --continue after --force |
682 |
682 |
683 $ echo def > a |
683 $ echo def > a |
684 $ hg ci -m 31 |
684 $ hg ci -m 31 |
685 $ hg graft 28 --force --tool internal:fail |
685 $ hg graft 28 --force --tool internal:fail |
686 grafting revision 28 |
686 grafting 28:6c56f0f7f033 "28" |
687 abort: unresolved conflicts, can't continue |
687 abort: unresolved conflicts, can't continue |
688 (use hg resolve and hg graft --continue) |
688 (use hg resolve and hg graft --continue) |
689 [255] |
689 [255] |
690 $ hg resolve --all |
690 $ hg resolve --all |
691 merging a |
691 merging a |