diff -r 52b5e14c63d5 -r 9d47474d2582 hgext/evolve.py --- a/hgext/evolve.py Tue Aug 07 18:46:38 2012 +0200 +++ b/hgext/evolve.py Tue Aug 07 18:53:26 2012 +0200 @@ -192,7 +192,7 @@ # Look for an unstable which can be stabilized as a child of # node. The unstable must be a child of one of node predecessors. for ctx in selfanddescendants(repo, pctx): - unstables = list(repo.set('unstable() and children(obsancestors(%d))', + unstables = list(repo.set('unstable() and children(allprecursors(%d))', ctx.rev())) if unstables: return unstables[0]