# HG changeset patch # User Pierre-Yves David # Date 1555583771 -7200 # Node ID 9837e8d378de16d9fa090c48cd981d4184f6a26e # Parent 8dae14cd076aeb8726f705320028cf8d622dc60f topic: only wrap gettopicrepo for repo with topic This helps repository with and without topic to coexist in the same process. diff -r 8dae14cd076a -r 9837e8d378de hgext3rd/topic/topicmap.py --- a/hgext3rd/topic/topicmap.py Thu Apr 18 11:13:49 2019 +0200 +++ b/hgext3rd/topic/topicmap.py Thu Apr 18 12:36:11 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