changeset 6606:c7083ba82d5f

topic: drop compatibility {branchmap,repoviewutil}.subsettable for hg 4.9
author Anton Shestakov <av6@dwimlabs.net>
date Fri, 03 Nov 2023 15:20:53 -0300
parents 595d52e0a063
children ff2ba083f8b4
files hgext3rd/topic/server.py
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/hgext3rd/topic/server.py	Thu Oct 26 15:17:04 2023 -0300
+++ b/hgext3rd/topic/server.py	Fri Nov 03 15:20:53 2023 -0300
@@ -5,7 +5,6 @@
 from mercurial.i18n import _
 
 from mercurial import (
-    branchmap,
     error,
     extensions,
     localrepo,
@@ -16,6 +15,8 @@
     wireprotov1server,
 )
 
+from mercurial.utils import repoviewutil
+
 from . import (
     common,
     compat,
@@ -169,6 +170,5 @@
 
     if FILTERNAME not in repoview.filtertable:
         repoview.filtertable[FILTERNAME] = computeunservedtopic
-        # hg <= 4.9 (caebe5e7f4bd)
-        branchmap.subsettable[FILTERNAME] = b'immutable'
-        branchmap.subsettable[b'served'] = FILTERNAME
+        repoviewutil.subsettable[FILTERNAME] = b'immutable'
+        repoviewutil.subsettable[b'served'] = FILTERNAME