# HG changeset patch # User Pierre-Yves David # Date 1555585381 -7200 # Node ID 75b414b298f5f90e0a9832eb3d13a5249cf984d8 # Parent 7f1e1ba3d16b09c2af8ec01ac4788881361d71fe topic: only wrap wireprotocaps for repo with topic This helps repository with and without topic to coexist in the same process. diff -r 7f1e1ba3d16b -r 75b414b298f5 hgext3rd/topic/discovery.py --- a/hgext3rd/topic/discovery.py Thu Apr 18 13:02:52 2019 +0200 +++ b/hgext3rd/topic/discovery.py Thu Apr 18 13:03:01 2019 +0200 @@ -198,7 +198,7 @@ def wireprotocaps(orig, repo, proto): caps = orig(repo, proto) - if repo.peer().capable('topics'): + if common.hastopicext(repo) and repo.peer().capable('topics'): caps.append('topics') return caps