diff -r 5cbcbe51d38d -r 4d5fb4062f0b mercurial/exchange.py --- a/mercurial/exchange.py Sun Jun 10 20:45:13 2018 +0900 +++ b/mercurial/exchange.py Thu Mar 15 17:37:03 2018 +0530 @@ -531,6 +531,9 @@ _pushobsolete(pushop) _pushbookmark(pushop) + if repo.ui.configbool('experimental', 'remotenames'): + logexchange.pullremotenames(repo, remote) + return pushop # list of steps to perform discovery before push