# HG changeset patch # User Pierre-Yves David # Date 1406839877 25200 # Node ID f1528ef123f4e380b7d345cae4c0e4e2a59eac28 # Parent 24bb01f42e820986b75de507504a9c1ea4e1da19 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. diff -r 24bb01f42e82 -r f1528ef123f4 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 = []