# HG changeset patch # User Pierre-Yves David # Date 1555585326 -7200 # Node ID 7e98faf278d6c875fb3b912cf7a872193f9368b3 # Parent 22cde12d9467b5b27512df535f5d20fafc7a4f42 topic: only wrap wireprotobranchmap for repo with topic This helps repository with and without topic to coexist in the same process. diff -r 22cde12d9467 -r 7e98faf278d6 hgext3rd/topic/discovery.py --- a/hgext3rd/topic/discovery.py Thu Apr 18 13:01:39 2019 +0200 +++ b/hgext3rd/topic/discovery.py Thu Apr 18 13:02:06 2019 +0200 @@ -123,6 +123,8 @@ remote.branchmap = origremotebranchmap def wireprotobranchmap(orig, repo, proto): + if not common.hastopicext(repo): + return orig(repo, proto) oldrepo = repo.__class__ try: class repocls(repo.__class__):