diff hgext/remotenames.py @ 38026:b9e6b71dc272

remotenames: enable the storage config option if extension is enabled Before this patch, the config option to store remotenames was set to False by default and remotenames extension does not set it True. So if you enable remotenames extension without setting 'experimental.remotenames=True', you won't get the remotenames. This patch makes remotenames enable the config option if then extension is enabled which makes sense. Differential Revision: https://phab.mercurial-scm.org/D3520
author Pulkit Goyal <7895pulkit@gmail.com>
date Sun, 29 Apr 2018 22:27:05 +0530
parents 678ab0de7296
children 25cc5616adc9
line wrap: on
line diff
--- a/hgext/remotenames.py	Sun Apr 29 22:42:54 2018 +0530
+++ b/hgext/remotenames.py	Sun Apr 29 22:27:05 2018 +0530
@@ -249,6 +249,10 @@
     extensions.wrapfunction(bookmarks, '_printbookmarks', wrapprintbookmarks)
 
 def reposetup(ui, repo):
+
+    # set the config option to store remotenames
+    repo.ui.setconfig('experimental', 'remotenames', True, 'remotenames-ext')
+
     if not repo.local():
         return