diff mercurial/hg.py @ 35347:a29fe459fc49

remotenames: rename related file and storage dir to logexchange This patch renames remotenames.py to logexchange.py, test-remotenames.t to test-logexchange.t. Also this patch renames the directory in which the data is stored from remotenames to logexchange. After this patch, data about bookmarks and branches from a server we pull is stored in `.hg/logexchange/(bookmarks|branches)` files. Thanks to smf for the suggestion. Differential Revision: https://phab.mercurial-scm.org/D1607
author Pulkit Goyal <7895pulkit@gmail.com>
date Thu, 07 Dec 2017 00:26:45 +0530
parents 773a9a06047c
children 0ebd94ac56d1
line wrap: on
line diff
--- a/mercurial/hg.py	Thu Dec 07 21:56:18 2017 +0100
+++ b/mercurial/hg.py	Thu Dec 07 00:26:45 2017 +0530
@@ -28,10 +28,10 @@
     httppeer,
     localrepo,
     lock,
+    logexchange,
     merge as mergemod,
     node,
     phases,
-    remotenames,
     repoview,
     scmutil,
     sshpeer,
@@ -691,7 +691,7 @@
             destrepo.ui.setconfig('paths', 'default', defaulturl, 'clone')
 
             if ui.configbool('experimental', 'remotenames'):
-                remotenames.pullremotenames(destrepo, srcpeer)
+                logexchange.pullremotenames(destrepo, srcpeer)
 
             if update:
                 if update is not True: