Mercurial > evolve
diff hgext3rd/topic/discovery.py @ 4541:7e98faf278d6 stable
topic: only wrap wireprotobranchmap 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:02:06 +0200 |
parents | 22cde12d9467 |
children | f5127bfc1588 |
line wrap: on
line diff
--- 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__):