equal
deleted
inserted
replaced
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 |