obsolete: ctx.obsolete in core is not buggy anymore
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Wed, 11 Jul 2012 21:07:02 +0200
changeset 360 6390ab3aea93
parent 359 43f79983f638
child 361 ac7969043677
obsolete: ctx.obsolete in core is not buggy anymore
hgext/obsolete.py
--- a/hgext/obsolete.py	Wed Jul 11 15:20:22 2012 +0200
+++ b/hgext/obsolete.py	Wed Jul 11 21:07:02 2012 +0200
@@ -120,13 +120,6 @@
 ### Patch changectx
 #############################
 
-# core one is buggy
-def obsolete(self):
-    """True if the changeset is obsolete"""
-    return self.node() in self._repo.obsstore.precursors and self.phase()
-
-context.changectx.obsolete = obsolete
-
 def unstable(ctx):
     """is the changeset unstable (have obsolete ancestor)"""
     if ctx.node() is None: