diff hgext/evolve.py @ 1375:9e062e6598e9 stable

evolve: search divergence within all precursors Before this patches we looking for divergence base in immediate successors only. This was a bug leading the divergence base to be reported missing more than it should.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Thu, 18 Jun 2015 15:56:56 -0700
parents 39f2c1ab3a53
children 8bb2e04cc18c
line wrap: on
line diff
--- a/hgext/evolve.py	Thu Jun 18 15:25:51 2015 -0700
+++ b/hgext/evolve.py	Thu Jun 18 15:56:56 2015 -0700
@@ -1586,8 +1586,8 @@
 
     XXX this woobly function won't survive XXX
     """
-    repo = ctx.repo.unfitered()
-    for base in repo.set('reverse(precursors(%d))', ctx):
+    repo = ctx._repo.unfiltered()
+    for base in repo.set('reverse(allprecursors(%d))', ctx):
         newer = obsolete.successorssets(ctx._repo, base.node())
         # drop filter and solution including the original ctx
         newer = [n for n in newer if n and ctx.node() not in n]