mercurial/exchange.py
changeset 34818 6709b5661d1b
parent 34817 a80142b03552
child 34819 eb6375651974
--- a/mercurial/exchange.py	Mon Oct 16 12:36:42 2017 +0200
+++ b/mercurial/exchange.py	Wed Oct 11 18:39:34 2017 +0200
@@ -531,7 +531,7 @@
     if (pushop.ui.configbool('ui', '_usedassubrepo')
         and remotephases    # server supports phases
         and not pushop.outgoing.missing # no changesets to be pushed
-        and publishing):
+        and remotephases.get('publishing', False)):
         # When:
         # - this is a subrepo push
         # - and remote support phase
@@ -541,7 +541,9 @@
         # We drop the possible phase synchronisation done by
         # courtesy to publish changesets possibly locally draft
         # on the remote.
-        remotephases = {'publishing': 'True'}
+        pushop.outdatedphases = []
+        pushop.fallbackoutdatedphases = []
+        return
     ana = phases.analyzeremotephases(pushop.repo,
                                      pushop.fallbackheads,
                                      remotephases)