##// END OF EJS Templates
extensions help: make disabling example analogous to enabling example...
Christian Ebert -
r10122:0ddbc029 stable
parent child Browse files
Show More
@@ -1,33 +1,33 b''
1 1 Mercurial has the ability to add new features through the use of
2 2 extensions. Extensions may add new commands, add options to
3 3 existing commands, change the default behavior of commands, or
4 4 implement hooks.
5 5
6 6 Extensions are not loaded by default for a variety of reasons:
7 7 they can increase startup overhead; they may be meant for advanced
8 8 usage only; they may provide potentially dangerous abilities (such
9 9 as letting you destroy or modify history); they might not be ready
10 10 for prime time; or they may alter some usual behaviors of stock
11 11 Mercurial. It is thus up to the user to activate extensions as
12 12 needed.
13 13
14 14 To enable the "foo" extension, either shipped with Mercurial or in
15 15 the Python search path, create an entry for it in your hgrc, like
16 16 this::
17 17
18 18 [extensions]
19 19 foo =
20 20
21 21 You may also specify the full path to an extension::
22 22
23 23 [extensions]
24 24 myfeature = ~/.hgext/myfeature.py
25 25
26 26 To explicitly disable an extension enabled in an hgrc of broader
27 27 scope, prepend its path with !::
28 28
29 29 [extensions]
30 30 # disabling extension bar residing in /path/to/extension/bar.py
31 hgext.bar = !/path/to/extension/bar.py
31 bar = !/path/to/extension/bar.py
32 32 # ditto, but no path was supplied for extension baz
33 hgext.baz = !
33 baz = !
General Comments 0
You need to be logged in to leave comments. Login now