Show More
@@ -576,7 +576,8 b' class changectx(basectx):' | |||||
576 | elif len(cahs) == 1: |
|
576 | elif len(cahs) == 1: | |
577 | anc = cahs[0] |
|
577 | anc = cahs[0] | |
578 | else: |
|
578 | else: | |
579 |
|
|
579 | # experimental config: merge.preferancestor | |
|
580 | for r in self._repo.ui.configlist('merge', 'preferancestor', ['*']): | |||
580 | try: |
|
581 | try: | |
581 | ctx = changectx(self._repo, r) |
|
582 | ctx = changectx(self._repo, r) | |
582 | except error.RepoLookupError: |
|
583 | except error.RepoLookupError: |
@@ -1011,7 +1011,7 b' def update(repo, node, branchmerge, forc' | |||||
1011 |
|
1011 | |||
1012 | p2 = repo[node] |
|
1012 | p2 = repo[node] | |
1013 | if pas[0] is None: |
|
1013 | if pas[0] is None: | |
1014 | if repo.ui.config('merge', 'preferancestor', '*') == '*': |
|
1014 | if repo.ui.configlist('merge', 'preferancestor', ['*']) == ['*']: | |
1015 | cahs = repo.changelog.commonancestorsheads(p1.node(), p2.node()) |
|
1015 | cahs = repo.changelog.commonancestorsheads(p1.node(), p2.node()) | |
1016 | pas = [repo[anc] for anc in (sorted(cahs) or [nullid])] |
|
1016 | pas = [repo[anc] for anc in (sorted(cahs) or [nullid])] | |
1017 | else: |
|
1017 | else: |
General Comments 0
You need to be logged in to leave comments.
Login now