Mercurial > hg > mutable-history
changeset 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 | 52b5e14c63d5 |
children | |
files | hgext/evolve.py hgext/obsolete.py tests/test-evolve.t |
diffstat | 3 files changed, 1 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/evolve.py +++ b/hgext/evolve.py @@ -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]
--- a/hgext/obsolete.py +++ b/hgext/obsolete.py @@ -637,7 +637,6 @@ return [r for r in subset if r in repo._conflictingset] -@eh.revset('obsparents') # XXX kill me @eh.revset('precursors') def revsetprecursors(repo, subset, x): """``precursors(set)`` @@ -648,7 +647,6 @@ return [r for r in subset if r in cs] -@eh.revset('obsancestors') # XXX kill me @eh.revset('allprecursors') def revsetallprecursors(repo, subset, x): """``allprecursors(set)`` @@ -659,7 +657,6 @@ return [r for r in subset if r in cs] -@eh.revset('obschildrend') # XXX kill me @eh.revset('successors') def revsetsuccessors(repo, subset, x): """``successors(set)`` @@ -669,7 +666,6 @@ cs = _successors(repo, s) return [r for r in subset if r in cs] -@eh.revset('obsdescendants') # XXX kill me @eh.revset('allsuccessors') def revsetallsuccessors(repo, subset, x): """``allsuccessors(set)``