D3520: remotenames: enable the storage config option if extension is enabled
pulkit (Pulkit Goyal)
phabricator at mercurial-scm.org
Fri May 11 22:54:42 EDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGb9e6b71dc272: remotenames: enable the storage config option if extension is enabled (authored by pulkit, committed by ).
CHANGED PRIOR TO COMMIT
https://phab.mercurial-scm.org/D3520?vs=8613&id=8651#toc
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D3520?vs=8613&id=8651
REVISION DETAIL
https://phab.mercurial-scm.org/D3520
AFFECTED FILES
hgext/remotenames.py
tests/test-logexchange.t
CHANGE DETAILS
diff --git a/tests/test-logexchange.t b/tests/test-logexchange.t
--- a/tests/test-logexchange.t
+++ b/tests/test-logexchange.t
@@ -6,8 +6,6 @@
> ssh = $PYTHON "$TESTDIR/dummyssh"
> [alias]
> glog = log -G -T '{rev}:{node|short} {desc}'
- > [experimental]
- > remotenames = True
> [extensions]
> remotenames =
> show =
diff --git a/hgext/remotenames.py b/hgext/remotenames.py
--- a/hgext/remotenames.py
+++ b/hgext/remotenames.py
@@ -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
To: pulkit, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list