##// END OF EJS Templates
configitems: register the 'merge.preferancestor' config
Boris Feld -
r34481:99c3dee3 default
parent child Browse files
Show More
@@ -302,6 +302,9 b" coreconfigitem('http_proxy', 'user',"
302 coreconfigitem('merge', 'followcopies',
302 coreconfigitem('merge', 'followcopies',
303 default=True,
303 default=True,
304 )
304 )
305 coreconfigitem('merge', 'preferancestor',
306 default=lambda: ['*'],
307 )
305 coreconfigitem('pager', 'ignore',
308 coreconfigitem('pager', 'ignore',
306 default=list,
309 default=list,
307 )
310 )
@@ -659,7 +659,7 b' class changectx(basectx):'
659 anc = cahs[0]
659 anc = cahs[0]
660 else:
660 else:
661 # experimental config: merge.preferancestor
661 # experimental config: merge.preferancestor
662 for r in self._repo.ui.configlist('merge', 'preferancestor', ['*']):
662 for r in self._repo.ui.configlist('merge', 'preferancestor'):
663 try:
663 try:
664 ctx = changectx(self._repo, r)
664 ctx = changectx(self._repo, r)
665 except error.RepoLookupError:
665 except error.RepoLookupError:
@@ -1566,7 +1566,7 b' def update(repo, node, branchmerge, forc'
1566
1566
1567 p2 = repo[node]
1567 p2 = repo[node]
1568 if pas[0] is None:
1568 if pas[0] is None:
1569 if repo.ui.configlist('merge', 'preferancestor', ['*']) == ['*']:
1569 if repo.ui.configlist('merge', 'preferancestor') == ['*']:
1570 cahs = repo.changelog.commonancestorsheads(p1.node(), p2.node())
1570 cahs = repo.changelog.commonancestorsheads(p1.node(), p2.node())
1571 pas = [repo[anc] for anc in (sorted(cahs) or [nullid])]
1571 pas = [repo[anc] for anc in (sorted(cahs) or [nullid])]
1572 else:
1572 else:
General Comments 0
You need to be logged in to leave comments. Login now