Show More
@@ -779,7 +779,7 b' def calculateupdates(repo, wctx, mctx, a' | |||||
779 | branchmerge, force, |
|
779 | branchmerge, force, | |
780 | partial, acceptremote, followcopies) |
|
780 | partial, acceptremote, followcopies) | |
781 |
|
781 | |||
782 |
else: # only when merge.preferancestor=* - |
|
782 | else: # only when merge.preferancestor=* - the default | |
783 | repo.ui.status( |
|
783 | repo.ui.status( | |
784 | _("note: merging %s and %s using bids from ancestors %s\n") % |
|
784 | _("note: merging %s and %s using bids from ancestors %s\n") % | |
785 | (wctx, mctx, _(' and ').join(str(anc) for anc in ancestors))) |
|
785 | (wctx, mctx, _(' and ').join(str(anc) for anc in ancestors))) | |
@@ -1048,7 +1048,7 b' def update(repo, node, branchmerge, forc' | |||||
1048 |
|
1048 | |||
1049 | p2 = repo[node] |
|
1049 | p2 = repo[node] | |
1050 | if pas[0] is None: |
|
1050 | if pas[0] is None: | |
1051 | if repo.ui.config("merge", "preferancestor") == '*': |
|
1051 | if repo.ui.config("merge", "preferancestor", '*') == '*': | |
1052 | cahs = repo.changelog.commonancestorsheads(p1.node(), p2.node()) |
|
1052 | cahs = repo.changelog.commonancestorsheads(p1.node(), p2.node()) | |
1053 | pas = [repo[anc] for anc in (sorted(cahs) or [nullid])] |
|
1053 | pas = [repo[anc] for anc in (sorted(cahs) or [nullid])] | |
1054 | else: |
|
1054 | else: |
@@ -72,7 +72,7 b' Criss cross merging' | |||||
72 | summary: 0 base |
|
72 | summary: 0 base | |
73 |
|
73 | |||
74 |
|
74 | |||
75 | $ hg merge -v --debug --tool internal:dump 5 |
|
75 | $ hg merge -v --debug --tool internal:dump 5 --config merge.preferancestor='!' | |
76 | note: using 0f6b37dbe527 as ancestor of 3b08d01b0ab5 and adfe50279922 |
|
76 | note: using 0f6b37dbe527 as ancestor of 3b08d01b0ab5 and adfe50279922 | |
77 | alternatively, use --config merge.preferancestor=40663881a6dd |
|
77 | alternatively, use --config merge.preferancestor=40663881a6dd | |
78 | searching for copies back to rev 3 |
|
78 | searching for copies back to rev 3 | |
@@ -209,13 +209,13 b' The other way around:' | |||||
209 | Verify how the output looks and and how verbose it is: |
|
209 | Verify how the output looks and and how verbose it is: | |
210 |
|
210 | |||
211 | $ hg up -qC |
|
211 | $ hg up -qC | |
212 | $ hg merge --config merge.preferancestor="*" |
|
212 | $ hg merge | |
213 | note: merging 3b08d01b0ab5+ and adfe50279922 using bids from ancestors 0f6b37dbe527 and 40663881a6dd |
|
213 | note: merging 3b08d01b0ab5+ and adfe50279922 using bids from ancestors 0f6b37dbe527 and 40663881a6dd | |
214 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
214 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
215 | (branch merge, don't forget to commit) |
|
215 | (branch merge, don't forget to commit) | |
216 |
|
216 | |||
217 | $ hg up -qC |
|
217 | $ hg up -qC | |
218 | $ hg merge -v --config merge.preferancestor="*" |
|
218 | $ hg merge -v | |
219 | note: merging 3b08d01b0ab5+ and adfe50279922 using bids from ancestors 0f6b37dbe527 and 40663881a6dd |
|
219 | note: merging 3b08d01b0ab5+ and adfe50279922 using bids from ancestors 0f6b37dbe527 and 40663881a6dd | |
220 |
|
220 | |||
221 | calculating bids for ancestor 0f6b37dbe527 |
|
221 | calculating bids for ancestor 0f6b37dbe527 | |
@@ -288,7 +288,7 b' http://stackoverflow.com/questions/93500' | |||||
288 | $ echo b >> x |
|
288 | $ echo b >> x | |
289 | $ hg commit -qm cb |
|
289 | $ hg commit -qm cb | |
290 |
|
290 | |||
291 | $ hg merge |
|
291 | $ hg merge --config merge.preferancestor='!' | |
292 | note: using 70008a2163f6 as ancestor of 0d355fdef312 and 4b8b546a3eef |
|
292 | note: using 70008a2163f6 as ancestor of 0d355fdef312 and 4b8b546a3eef | |
293 | alternatively, use --config merge.preferancestor=b211bbc6eb3c |
|
293 | alternatively, use --config merge.preferancestor=b211bbc6eb3c | |
294 | merging x |
|
294 | merging x |
General Comments 0
You need to be logged in to leave comments.
Login now