push: use stepsdone for obsmarkers push
authorPierre-Yves David <pierre-yves.david@fb.com>
Thu, 31 Jul 2014 13:51:17 -0700
changeset 22036 f1528ef123f4
parent 22035 24bb01f42e82
child 22037 8665c647da6e
push: use stepsdone for obsmarkers push We do not have infrastructure to include obsolescence markers in the bundle2 push from core. But extensions may so we make sure it would not be sent twice.
mercurial/exchange.py
--- a/mercurial/exchange.py	Sat Jul 05 19:32:20 2014 +0200
+++ b/mercurial/exchange.py	Thu Jul 31 13:51:17 2014 -0700
@@ -590,9 +590,12 @@
 
 def _pushobsolete(pushop):
     """utility function to push obsolete markers to a remote"""
+    if 'obsmarkers' in pushop.stepsdone:
+        return
     pushop.ui.debug('try to push obsolete markers to remote\n')
     repo = pushop.repo
     remote = pushop.remote
+    pushop.stepsdone.add('obsmarkers')
     if (obsolete._enabled and repo.obsstore and
         'obsolete' in remote.listkeys('namespaces')):
         rslts = []