[Bug 5591] New: user-set alias doesn't recognize extensions enabled globally
mercurial-bugs at mercurial-scm.org
mercurial-bugs at mercurial-scm.org
Thu Jun 8 15:31:41 UTC 2017
https://bz.mercurial-scm.org/show_bug.cgi?id=5591
Bug ID: 5591
Summary: user-set alias doesn't recognize extensions enabled
globally
Product: Mercurial
Version: 4.2.1
Hardware: PC
OS: Windows
Status: UNCONFIRMED
Severity: feature
Priority: wish
Component: Mercurial
Assignee: bugzilla at mercurial-scm.org
Reporter: rvandermeulen at mozilla.com
CC: gregory.szorc at gmail.com,
mercurial-devel at mercurial-scm.org
I have the purge extension enabled at in the global mercurial.ini we ship in
the MozillaBuild package. I also have a user-level mercurial.ini with a
"switch" alias that runs "hg up -C $1 && hg purge". However, that alias fails
to run unless I specifically enable the purge extension in my user-level
mercurial.ini because it doesn't think the purge extension is enabled.
>From hg config --debug:
c:\mozilla-build-3.0pre2\python\mercurial.ini:6: extensions.purge=
The alias (in ~/mercurial.ini):
switch = !hg up -C $1 && hg purge
Actual results:
hg: unknown command 'purge'
Running 'hg purge' by itself works fine. And if I add "purge=" to
~/mercurial.ini, the alias also works fine then.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Mercurial-devel
mailing list