changeset 6309:f7d1a14fd6a4

evolve: obsstore has predecessors method since 4.4
author Anton Shestakov <av6@dwimlabs.net>
date Sun, 09 Oct 2022 08:36:25 +0400
parents 1d5cb87fbce9
children 43166bd57d6c
files hgext3rd/evolve/compat.py
diffstat 1 files changed, 0 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/hgext3rd/evolve/compat.py	Sun Oct 09 08:11:06 2022 +0400
+++ b/hgext3rd/evolve/compat.py	Sun Oct 09 08:36:25 2022 +0400
@@ -53,14 +53,6 @@
     r'PHASEDIVERGENT': b'phase-divergent',
 }
 
-# XXX: Better detection of property cache
-if r'predecessors' not in dir(obsolete.obsstore):
-    @property
-    def predecessors(self):
-        return self.precursors
-
-    obsolete.obsstore.predecessors = predecessors
-
 def memfilectx(repo, ctx, fctx, flags, copied, path):
     # XXX Would it be better at the module level?
     varnames = context.memfilectx.__init__.__code__.co_varnames  # pytype: disable=attribute-error