# HG changeset patch # User Pierre-Yves David # Date 1498663423 -7200 # Node ID 1014341c637b9feda7ad84b1c1e34b73a7a1e8f1 # Parent a08bd434a19b891cffb0a459f53cfcd5dff70e84 topic: also detect head checking using the concurrent part diff -r a08bd434a19b -r 1014341c637b hgext3rd/topic/discovery.py --- a/hgext3rd/topic/discovery.py Wed Jun 28 18:16:14 2017 +0200 +++ b/hgext3rd/topic/discovery.py Wed Jun 28 17:23:43 2017 +0200 @@ -129,8 +129,9 @@ handlecheckheads.params = frozenset() def _pushb2phases(orig, pushop, bundler): - hascheck = any(p.type == 'check:heads' for p in bundler._parts) - if pushop.outdatedphases and not hascheck: + checktypes = ('check:heads', 'check:updated-heads') + hascheck = any(p.type in checktypes for p in bundler._parts) + if not hascheck and pushop.outdatedphases: exchange._pushb2ctxcheckheads(pushop, bundler) return orig(pushop, bundler)