Mercurial > evolve
changeset 446:9d47474d2582
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 | fa85e7205e0b |
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 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]
--- a/hgext/obsolete.py Tue Aug 07 18:46:38 2012 +0200 +++ b/hgext/obsolete.py Tue Aug 07 18:53:26 2012 +0200 @@ -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)``
--- a/tests/test-evolve.t Tue Aug 07 18:46:38 2012 +0200 +++ b/tests/test-evolve.t Tue Aug 07 18:53:26 2012 +0200 @@ -212,10 +212,6 @@ and **amend**:: - $ hg status - $ hg pstatus - $ hg diff - $ hg pdiff $ hg amend --note "fix spelling of Zwei" The `--note` is our commit message for the *update* only. So its only purpose