diff hgext3rd/topic/compat.py @ 4943:ad2a8a649b61

topic: drop compat.successorssets(), it's not used The only place in topics that uses successorssets function is in evolvebits.py, and it's using that function from obsutil directly.
author Anton Shestakov <av6@dwimlabs.net>
date Fri, 15 Nov 2019 11:48:17 +0700
parents acc7e27fa5c6
children 721b35f4341c
line wrap: on
line diff
--- a/hgext3rd/topic/compat.py	Fri Nov 15 11:37:34 2019 +0700
+++ b/hgext3rd/topic/compat.py	Fri Nov 15 11:48:17 2019 +0700
@@ -8,22 +8,11 @@
 from __future__ import absolute_import
 
 from mercurial import (
-    obsolete,
     pycompat,
     registrar,
     util,
 )
 
-successorssets = None
-try:
-    from mercurial import obsutil
-    successorssets = getattr(obsutil, 'successorssets', None)
-except ImportError:
-    pass
-
-if successorssets is None:
-    successorssets = obsolete.successorssets
-
 if pycompat.ispy3:
     def branchmapitems(branchmap):
         return branchmap.items()