##// END OF EJS Templates
changectx: ancestor should only prefer merge.preferancestor if it is a revision...
Mads Kiilerich -
r22180:17011b36 stable
parent child Browse files
Show More
@@ -553,6 +553,8 b' class changectx(basectx):'
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:
@@ -341,4 +341,15 b' http://stackoverflow.com/questions/93500'
341 b
341 b
342 c
342 c
343
343
344 Verify that the old context ancestor works with / despite preferancestor:
345
346 $ hg log -r 'ancestor(head())' --config merge.preferancestor=1 -T '{rev}\n'
347 1
348 $ hg log -r 'ancestor(head())' --config merge.preferancestor=2 -T '{rev}\n'
349 2
350 $ hg log -r 'ancestor(head())' --config merge.preferancestor=3 -T '{rev}\n'
351 1
352 $ hg log -r 'ancestor(head())' --config merge.preferancestor='*' -T '{rev}\n'
353 1
354
344 $ cd ..
355 $ cd ..
General Comments 0
You need to be logged in to leave comments. Login now