# HG changeset patch # User Pierre-Yves David # Date 1391140509 28800 # Node ID 46ede894d5a4ab631bf42fb7f765b66463a7bbb0 # Parent e009e59e456632b0ecf5ae15129554d8fd9b851f push: move obsolescence related message into _pushobsolescence function No good reason to have them in the main fonction. diff -r e009e59e4566 -r 46ede894d5a4 mercurial/exchange.py --- 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