diff mercurial/context.py @ 17825:3cc06457f15e

obsolete: rename `getobscache` into `getrevs` The old name was not very good for two reasons: - caller does not care about "cache", - set of revision returned may not be obsolete at all. The new name was suggested by Kevin Bullock.
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Fri, 19 Oct 2012 00:28:13 +0200
parents a1c4b21fc1b2
children 82f1fe0308bd
line wrap: on
line diff
--- a/mercurial/context.py	Sun Oct 14 15:10:13 2012 -0400
+++ b/mercurial/context.py	Fri Oct 19 00:28:13 2012 +0200
@@ -233,15 +233,15 @@
 
     def obsolete(self):
         """True if the changeset is obsolete"""
-        return self.rev() in obsmod.getobscache(self._repo, 'obsolete')
+        return self.rev() in obsmod.getrevs(self._repo, 'obsolete')
 
     def extinct(self):
         """True if the changeset is extinct"""
-        return self.rev() in obsmod.getobscache(self._repo, 'extinct')
+        return self.rev() in obsmod.getrevs(self._repo, 'extinct')
 
     def unstable(self):
         """True if the changeset is not obsolete but it's ancestor are"""
-        return self.rev() in obsmod.getobscache(self._repo, 'unstable')
+        return self.rev() in obsmod.getrevs(self._repo, 'unstable')
 
     def _fileinfo(self, path):
         if '_manifest' in self.__dict__: