hgext/evolve.py
changeset 446 9d47474d2582
parent 444 aedb6b8ace86
child 455 f46a41006136
equal deleted inserted replaced
445:52b5e14c63d5 446:9d47474d2582
   190             yield ctx
   190             yield ctx
   191 
   191 
   192     # Look for an unstable which can be stabilized as a child of
   192     # Look for an unstable which can be stabilized as a child of
   193     # node. The unstable must be a child of one of node predecessors.
   193     # node. The unstable must be a child of one of node predecessors.
   194     for ctx in selfanddescendants(repo, pctx):
   194     for ctx in selfanddescendants(repo, pctx):
   195         unstables = list(repo.set('unstable() and children(obsancestors(%d))',
   195         unstables = list(repo.set('unstable() and children(allprecursors(%d))',
   196                                   ctx.rev()))
   196                                   ctx.rev()))
   197         if unstables:
   197         if unstables:
   198             return unstables[0]
   198             return unstables[0]
   199     return None
   199     return None
   200 
   200