diff mercurial/exchange.py @ 38614:4d5fb4062f0b

remotenames: synchronise remotenames after push also Earlier we use to pull remotenames information from the server in case of pull and clone only. This patch adds logic to push also command to pull remotenames information. This will help us in keeping the remotenames more upto date where there are a lot people changing state of branches and bookmarks at the server. Differential Revision: https://phab.mercurial-scm.org/D2874
author Pulkit Goyal <7895pulkit@gmail.com>
date Thu, 15 Mar 2018 17:37:03 +0530
parents 2834ac06d5a9
children 9b64b73d702b
line wrap: on
line diff
--- 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