obsolete: fix context.obsolete() method
- obsstore attribut name changed.
- public changeset can't be obsolete
--- a/mercurial/context.py Wed Jul 04 16:37:00 2012 +0200
+++ b/mercurial/context.py Wed Jul 04 17:26:51 2012 +0200
@@ -232,7 +232,8 @@
def obsolete(self):
"""True if the changeset is obsolete"""
- return self.node() in self._repo.obsstore.obsoleted
+ return (self.node() in self._repo.obsstore.precursors
+ and self.phase() > phases.public)
def _fileinfo(self, path):
if '_manifest' in self.__dict__: