comparison hgext/evolve.py @ 446:9d47474d2582 default tip

obsolete: remove legacy revset
author Pierre-Yves David <pierre-yves.david@logilab.fr>
date Tue, 07 Aug 2012 18:53:26 +0200
parents aedb6b8ace86
children
comparison
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