hgext3rd/topic/__init__.py
branchstable
changeset 4531 1d1f8f56daac
parent 4524 f6099a171a9d
child 4532 659b6f548fc1
--- a/hgext3rd/topic/__init__.py	Wed Apr 17 21:39:28 2019 +0200
+++ b/hgext3rd/topic/__init__.py	Thu Apr 18 11:12:58 2019 +0200
@@ -139,6 +139,7 @@
 )
 
 from . import (
+    common,
     compat,
     constants,
     destination,
@@ -257,6 +258,8 @@
 topicrev = re.compile(r'^t\d+$')
 branchrev = re.compile(r'^b\d+$')
 
+hastopicext = common.hastopicext
+
 def _namemap(repo, name):
     revs = None
     if stackrev.match(name):
@@ -368,6 +371,9 @@
 
     class topicrepo(repo.__class__):
 
+        # attribute for other code to distinct between repo with topic and repo without
+        hastopicext = True
+
         def _restrictcapabilities(self, caps):
             caps = super(topicrepo, self)._restrictcapabilities(caps)
             caps.add('topics')