[Bug 5815] New: ui.debug=True in a config file may prevent extensions from loading
mercurial-bugs at mercurial-scm.org
mercurial-bugs at mercurial-scm.org
Mon Mar 12 03:18:04 UTC 2018
https://bz.mercurial-scm.org/show_bug.cgi?id=5815
Bug ID: 5815
Summary: ui.debug=True in a config file may prevent extensions
from loading
Product: Mercurial
Version: default branch
Hardware: PC
OS: Windows
Status: UNCONFIRMED
Severity: bug
Priority: normal
Component: Mercurial
Assignee: bugzilla at mercurial-scm.org
Reporter: matt_harbison at yahoo.com
CC: mercurial-devel at mercurial-scm.org
STR: apply this patch to b434965f984e
diff --git a/tests/test-lfs-test-server.t b/tests/test-lfs-test-server.t
--- a/tests/test-lfs-test-server.t
+++ b/tests/test-lfs-test-server.t
@@ -31,6 +31,8 @@
> [lfs]
> url=http://foo:bar@$LFS_HOST/
> track=all()
+ > [ui]
+ > debug = True
> EOF
$ hg init repo1
With this, the update to tip around line 69 of the test fails, complaining the
'lfs' requirement is missing. I verified in extensions.loadall() that the
result of `ui.configitems("extensions")` contains no extensions in this case.
Strangely, --debug and '--config ui.debug=True' specified with the failing
update command *will* allow the extension to load without the patch above (or
if it is set to False in the patch). Additionally, '--config ui.debug=False'
and --debug on the command line will fail if the patch is applied with True.
I haven't been able to reproduce this with largefiles or in test-lfs.t, which
makes me wonder if there is something else special about this config file.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Mercurial-devel
mailing list