topic: drop compat.successorssets(), it's not used
authorAnton Shestakov <av6@dwimlabs.net>
Fri, 15 Nov 2019 11:48:17 +0700
changeset 4943 ad2a8a649b61
parent 4942 acc7e27fa5c6
child 4944 f84a6ddb7f37
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.
hgext3rd/topic/compat.py
--- 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()