hgext3rd/topic/topicmap.py
changeset 4563 8b3781d9a616
parent 4528 4c3667220267
parent 4536 9837e8d378de
child 4705 c63f47a4f5ec
--- a/hgext3rd/topic/topicmap.py	Wed Apr 17 00:20:44 2019 +0530
+++ b/hgext3rd/topic/topicmap.py	Tue Apr 23 13:26:35 2019 +0200
@@ -12,6 +12,10 @@
     util,
 )
 
+from . import (
+    common,
+)
+
 basefilter = set(['base', 'immutable'])
 def topicfilter(name):
     """return a "topic" version of a filter level"""
@@ -30,6 +34,8 @@
     return filtername.endswith('-topic')
 
 def gettopicrepo(repo):
+    if not common.hastopicext(repo):
+        return repo
     filtername = topicfilter(repo.filtername)
     if filtername == repo.filtername:
         return repo