hgext3rd/topic/discovery.py
changeset 2673 1014341c637b
parent 2653 13313d0cab71
child 2674 9585fac76d2d
--- 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)