##// END OF EJS Templates
merge: show the scary multiple ancestor hint for merges only, not for updates...
Mads Kiilerich -
r22179:46308fad stable
parent child Browse files
Show More
@@ -1052,7 +1052,7 b' def update(repo, node, branchmerge, forc'
1052 1052 cahs = repo.changelog.commonancestorsheads(p1.node(), p2.node())
1053 1053 pas = [repo[anc] for anc in (sorted(cahs) or [nullid])]
1054 1054 else:
1055 pas = [p1.ancestor(p2, warn=True)]
1055 pas = [p1.ancestor(p2, warn=branchmerge)]
1056 1056
1057 1057 fp1, fp2, xp1, xp2 = p1.node(), p2.node(), str(p1), str(p2)
1058 1058
@@ -24,8 +24,6 b' Criss cross merging'
24 24 $ hg ci -m '5 second change f1'
25 25
26 26 $ hg up -r3
27 note: using 0f6b37dbe527 as ancestor of adfe50279922 and cf89f02107e5
28 alternatively, use --config merge.preferancestor=40663881a6dd
29 27 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
30 28 $ echo '6 second change' > f2
31 29 $ hg ci -m '6 second change f2'
@@ -169,8 +167,6 b' Redo merge with merge.preferancestor="*"'
169 167 The other way around:
170 168
171 169 $ hg up -C -r5
172 note: using 0f6b37dbe527 as ancestor of 3b08d01b0ab5 and adfe50279922
173 alternatively, use --config merge.preferancestor=40663881a6dd
174 170 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
175 171 $ hg merge -v --debug --config merge.preferancestor="*"
176 172 note: merging adfe50279922+ and 3b08d01b0ab5 using bids from ancestors 0f6b37dbe527 and 40663881a6dd
General Comments 0
You need to be logged in to leave comments. Login now