push: move obsolescence related message into _pushobsolescence function
No good reason to have them in the main fonction.
--- a/mercurial/exchange.py Thu Jan 30 19:51:21 2014 -0800
+++ b/mercurial/exchange.py Thu Jan 30 19:55:09 2014 -0800
@@ -246,7 +246,6 @@
if not r:
pushop.ui.warn(_('updating %s to public failed!\n')
% newremotehead)
- pushop.ui.debug('try to push obsolete markers to remote\n')
_pushobsolete(pushop)
finally:
if lock is not None:
@@ -260,6 +259,7 @@
def _pushobsolete(pushop):
"""utility function to push obsolete markers to a remote"""
+ pushop.ui.debug('try to push obsolete markers to remote\n')
repo = pushop.repo
remote = pushop.remote
if (obsolete._enabled and repo.obsstore and