# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 1525021025 -19800 # Node ID b9e6b71dc27246d1f4d6437edfdc9788188aa306 # Parent 7465b908d3059c1d85bd85674f2343707e6a318c 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 diff -r 7465b908d305 -r b9e6b71dc272 hgext/remotenames.py --- 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 diff -r 7465b908d305 -r b9e6b71dc272 tests/test-logexchange.t --- a/tests/test-logexchange.t Sun Apr 29 22:42:54 2018 +0530 +++ b/tests/test-logexchange.t Sun Apr 29 22:27:05 2018 +0530 @@ -6,8 +6,6 @@ > ssh = $PYTHON "$TESTDIR/dummyssh" > [alias] > glog = log -G -T '{rev}:{node|short} {desc}' - > [experimental] - > remotenames = True > [extensions] > remotenames = > show =