##// 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 302 coreconfigitem('merge', 'followcopies',
303 303 default=True,
304 304 )
305 coreconfigitem('merge', 'preferancestor',
306 default=lambda: ['*'],
307 )
305 308 coreconfigitem('pager', 'ignore',
306 309 default=list,
307 310 )
@@ -659,7 +659,7 b' class changectx(basectx):'
659 659 anc = cahs[0]
660 660 else:
661 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 663 try:
664 664 ctx = changectx(self._repo, r)
665 665 except error.RepoLookupError:
@@ -1566,7 +1566,7 b' def update(repo, node, branchmerge, forc'
1566 1566
1567 1567 p2 = repo[node]
1568 1568 if pas[0] is None:
1569 if repo.ui.configlist('merge', 'preferancestor', ['*']) == ['*']:
1569 if repo.ui.configlist('merge', 'preferancestor') == ['*']:
1570 1570 cahs = repo.changelog.commonancestorsheads(p1.node(), p2.node())
1571 1571 pas = [repo[anc] for anc in (sorted(cahs) or [nullid])]
1572 1572 else:
General Comments 0
You need to be logged in to leave comments. Login now