Show More
@@ -558,9 +558,10 b' class changectx(basectx):' | |||||
558 | anc = cahs[0] |
|
558 | anc = cahs[0] | |
559 | else: |
|
559 | else: | |
560 | for r in self._repo.ui.configlist('merge', 'preferancestor'): |
|
560 | for r in self._repo.ui.configlist('merge', 'preferancestor'): | |
561 |
|
|
561 | try: | |
|
562 | ctx = changectx(self._repo, r) | |||
|
563 | except error.RepoLookupError: | |||
562 | continue |
|
564 | continue | |
563 | ctx = changectx(self._repo, r) |
|
|||
564 | anc = ctx.node() |
|
565 | anc = ctx.node() | |
565 | if anc in cahs: |
|
566 | if anc in cahs: | |
566 | break |
|
567 | break |
@@ -349,7 +349,7 b' Verify that the old context ancestor wor' | |||||
349 | 2 |
|
349 | 2 | |
350 | $ hg log -r 'ancestor(head())' --config merge.preferancestor=3 -T '{rev}\n' |
|
350 | $ hg log -r 'ancestor(head())' --config merge.preferancestor=3 -T '{rev}\n' | |
351 | 1 |
|
351 | 1 | |
352 | $ hg log -r 'ancestor(head())' --config merge.preferancestor='*' -T '{rev}\n' |
|
352 | $ hg log -r 'ancestor(head())' --config merge.preferancestor='1337 * - 2' -T '{rev}\n' | |
353 |
|
|
353 | 2 | |
354 |
|
354 | |||
355 | $ cd .. |
|
355 | $ cd .. |
General Comments 0
You need to be logged in to leave comments.
Login now