equal
deleted
inserted
replaced
410 Otherwise, give a name that you choose, followed by ``=``, followed by |
410 Otherwise, give a name that you choose, followed by ``=``, followed by |
411 the path to the ``.py`` file (including the file name extension) that |
411 the path to the ``.py`` file (including the file name extension) that |
412 defines the extension. |
412 defines the extension. |
413 |
413 |
414 To explicitly disable an extension that is enabled in an hgrc of |
414 To explicitly disable an extension that is enabled in an hgrc of |
415 broader scope, prepend its path with ``!``, as in |
415 broader scope, prepend its path with ``!``, as in ``foo = !/ext/path`` |
416 ``hgext.foo = !/ext/path`` or ``hgext.foo = !`` when path is not |
416 or ``foo = !`` when path is not supplied. |
417 supplied. |
|
418 |
417 |
419 Example for ``~/.hgrc``:: |
418 Example for ``~/.hgrc``:: |
420 |
419 |
421 [extensions] |
420 [extensions] |
422 # (the mq extension will get loaded from Mercurial's path) |
421 # (the mq extension will get loaded from Mercurial's path) |
423 hgext.mq = |
422 mq = |
424 # (this extension will get loaded from the file specified) |
423 # (this extension will get loaded from the file specified) |
425 myfeature = ~/.hgext/myfeature.py |
424 myfeature = ~/.hgext/myfeature.py |
426 |
425 |
427 |
426 |
428 ``hostfingerprints`` |
427 ``hostfingerprints`` |