Mercurial > evolve
changeset 4544:75b414b298f5 stable
topic: only wrap wireprotocaps for repo with topic
This helps repository with and without topic to coexist in the same process.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Thu, 18 Apr 2019 13:03:01 +0200 |
parents | 7f1e1ba3d16b |
children | 93c6a274cd83 |
files | hgext3rd/topic/discovery.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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