comparison mercurial/context.py @ 22180:17011b36aac7 stable

changectx: ancestor should only prefer merge.preferancestor if it is a revision The value '*' currently designates that bid merge should be used. The best way to test bid merge is to set preferancestor=* in the configuration file ... but then it would abort with unknown revision '*' when other code paths ended up in changectx.ancestor . Instead, just skip and ignore the value '*' when looking for a preferred ancestor.
author Mads Kiilerich <madski@unity3d.com>
date Fri, 15 Aug 2014 02:46:44 +0200
parents 48e32c2c499b
children 8dda6f6ff564
comparison
equal deleted inserted replaced
22179:46308fadaa15 22180:17011b36aac7
551 anc = nullid 551 anc = nullid
552 elif len(cahs) == 1: 552 elif len(cahs) == 1:
553 anc = cahs[0] 553 anc = cahs[0]
554 else: 554 else:
555 for r in self._repo.ui.configlist('merge', 'preferancestor'): 555 for r in self._repo.ui.configlist('merge', 'preferancestor'):
556 if r == '*':
557 continue
556 ctx = changectx(self._repo, r) 558 ctx = changectx(self._repo, r)
557 anc = ctx.node() 559 anc = ctx.node()
558 if anc in cahs: 560 if anc in cahs:
559 break 561 break
560 else: 562 else: