topic: also detect head checking using the concurrent part
authorPierre-Yves David <pierre-yves.david@octobus.net>
Wed, 28 Jun 2017 17:23:43 +0200
changeset 2673 1014341c637b
parent 2672 a08bd434a19b
child 2674 9585fac76d2d
topic: also detect head checking using the concurrent part
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)