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