Mercurial > public > mercurial-scm > hg-stable
diff mercurial/exchange.py @ 25559:521c1a3139c9
push: only say we are trying to push obsmarkers when we actually try
The message was issued unconditionally. Move it inside the `if` that actually
tries to push obsmarkers.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Thu, 11 Jun 2015 13:02:21 -0700 |
parents | 1e37bd83dc66 |
children | 39f0064a3079 |
line wrap: on
line diff
--- a/mercurial/exchange.py Fri May 29 13:25:34 2015 -0400 +++ b/mercurial/exchange.py Thu Jun 11 13:02:21 2015 -0700 @@ -789,11 +789,11 @@ """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 pushop.outobsmarkers: + pushop.ui.debug('try to push obsolete markers to remote\n') rslts = [] remotedata = obsolete._pushkeyescape(sorted(pushop.outobsmarkers)) for key in sorted(remotedata, reverse=True):