Commits

Pierre-Yves David committed 9d47474

obsolete: remove legacy revset

Comments (0)

Files changed (3)

     # 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]

hgext/obsolete.py

     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)``
     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)``
     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)``
     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)``

tests/test-evolve.t

 
 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