# HG changeset patch # User Pierre-Yves David # Date 1555585364 -7200 # Node ID f5127bfc15881c9904659f719a7563b62bc9db68 # Parent 7e98faf278d6c875fb3b912cf7a872193f9368b3 topic: only wrap handlecheckheads for repo with topic This helps repository with and without topic to coexist in the same process. diff -r 7e98faf278d6 -r f5127bfc1588 hgext3rd/topic/discovery.py --- a/hgext3rd/topic/discovery.py Thu Apr 18 13:02:06 2019 +0200 +++ b/hgext3rd/topic/discovery.py Thu Apr 18 13:02:44 2019 +0200 @@ -154,7 +154,7 @@ def handlecheckheads(orig, op, inpart): """This is used to check for new heads when publishing changeset""" orig(op, inpart) - if op.repo.publishing(): + if not common.hastopicext(op.repo) or op.repo.publishing(): return tr = op.gettransaction() if tr.hookargs['source'] not in ('push', 'serve'): # not a push