changeset 423:8ae4f8bb24d5

obsolete: remove unused BC code
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Mon, 06 Aug 2012 17:02:38 +0200
parents cc8038e3bc23
children 9720ac97445f
files hgext/obsolete.py
diffstat 1 files changed, 0 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/obsolete.py	Mon Aug 06 16:56:17 2012 +0200
+++ b/hgext/obsolete.py	Mon Aug 06 17:02:38 2012 +0200
@@ -135,15 +135,6 @@
     args = revset.getargs(x, 0, 0, 'obsolete takes no argument')
     return [r for r in subset if r in repo._obsoleteset and repo._phasecache.phase(repo, r) > 0]
 
-# XXX Backward compatibility, to be removed once stabilized
-if '_phasecache' not in vars(localrepo.localrepository): # new api
-    def revsetobsolete(repo, subset, x):
-        """``obsolete()``
-        Changeset is obsolete.
-        """
-        args = revset.getargs(x, 0, 0, 'obsolete takes no argument')
-        return [r for r in subset if r in repo._obsoleteset and repo._phaserev[r] > 0]
-
 def revsetunstable(repo, subset, x):
     """``unstable()``
     Unstable changesets are non-obsolete with obsolete ancestors.