Commits

Pierre-Yves David  committed 8ae4f8b

obsolete: remove unused BC code

  • Participants
  • Parent commits cc8038e
  • Branches default

Comments (0)

Files changed (1)

File hgext/obsolete.py

     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.