| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 3 |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
| 4 |
<head> |
| 5 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
| 6 |
<meta name="generator" content="Docutils 0.21.2: https://docutils.sourceforge.io/" /> |
| 7 |
<title>Using Additional Features</title> |
| 8 |
<link rel="stylesheet" href="../style.css" type="text/css" /> |
| 9 |
</head> |
| 10 |
<body> |
| 11 |
<div class="document" id="using-additional-features"> |
| 12 |
<span id="topic-extensions"></span> |
| 13 |
<h1 class="title">Using Additional Features</h1> |
| 14 |
|
| 15 |
<p id="extensions">Mercurial has the ability to add new features through the use of |
| 16 |
extensions. Extensions may add new commands, add options to |
| 17 |
existing commands, change the default behavior of commands, or |
| 18 |
implement hooks.</p> |
| 19 |
<p>To enable the "foo" extension, either shipped with Mercurial or in the |
| 20 |
Python search path, create an entry for it in your configuration file, |
| 21 |
like this:</p> |
| 22 |
<pre class="literal-block"> |
| 23 |
[extensions] |
| 24 |
foo = |
| 25 |
</pre> |
| 26 |
<p>You may also specify the full path to an extension:</p> |
| 27 |
<pre class="literal-block"> |
| 28 |
[extensions] |
| 29 |
myfeature = ~/.hgext/myfeature.py |
| 30 |
</pre> |
| 31 |
<p>See <a class="reference external" href="hgrc.5.html"><tt class="docutils literal">hg help config</tt></a> for more information on configuration files.</p> |
| 32 |
<p>Extensions are not loaded by default for a variety of reasons: |
| 33 |
they can increase startup overhead; they may be meant for advanced |
| 34 |
usage only; they may provide potentially dangerous abilities (such |
| 35 |
as letting you destroy or modify history); they might not be ready |
| 36 |
for prime time; or they may alter some usual behaviors of stock |
| 37 |
Mercurial. It is thus up to the user to activate extensions as |
| 38 |
needed.</p> |
| 39 |
<p>To explicitly disable an extension enabled in a configuration file of |
| 40 |
broader scope, prepend its path with !:</p> |
| 41 |
<pre class="literal-block"> |
| 42 |
[extensions] |
| 43 |
# disabling extension bar residing in /path/to/extension/bar.py |
| 44 |
bar = !/path/to/extension/bar.py |
| 45 |
# ditto, but no path was supplied for extension baz |
| 46 |
baz = ! |
| 47 |
</pre> |
| 48 |
<p>disabled extensions:</p> |
| 49 |
<blockquote> |
| 50 |
<table class="docutils field-list" frame="void" rules="none"> |
| 51 |
<col class="field-name" /> |
| 52 |
<col class="field-body" /> |
| 53 |
<tbody valign="top"> |
| 54 |
<tr class="field"><th class="field-name">acl:</th><td class="field-body">hooks for controlling repository access</td> |
| 55 |
</tr> |
| 56 |
<tr class="field"><th class="field-name">blackbox:</th><td class="field-body">log repository events to a blackbox for debugging</td> |
| 57 |
</tr> |
| 58 |
<tr class="field"><th class="field-name">bugzilla:</th><td class="field-body">hooks for integrating with the Bugzilla bug tracker</td> |
| 59 |
</tr> |
| 60 |
<tr class="field"><th class="field-name">censor:</th><td class="field-body">erase file content at a given revision</td> |
| 61 |
</tr> |
| 62 |
<tr class="field"><th class="field-name">churn:</th><td class="field-body">command to display statistics about repository history</td> |
| 63 |
</tr> |
| 64 |
<tr class="field"><th class="field-name">clonebundles:</th><td class="field-body">advertise pre-generated bundles to seed clones</td> |
| 65 |
</tr> |
| 66 |
<tr class="field"><th class="field-name">closehead:</th><td class="field-body">close arbitrary heads without checking them out first</td> |
| 67 |
</tr> |
| 68 |
<tr class="field"><th class="field-name">convert:</th><td class="field-body">import revisions from foreign VCS repositories into Mercurial</td> |
| 69 |
</tr> |
| 70 |
<tr class="field"><th class="field-name">eol:</th><td class="field-body">automatically manage newlines in repository files</td> |
| 71 |
</tr> |
| 72 |
<tr class="field"><th class="field-name">extdiff:</th><td class="field-body">command to allow external programs to compare revisions</td> |
| 73 |
</tr> |
| 74 |
<tr class="field"><th class="field-name">factotum:</th><td class="field-body">http authentication with factotum</td> |
| 75 |
</tr> |
| 76 |
<tr class="field"><th class="field-name">fastexport:</th><td class="field-body">export repositories as git fast-import stream</td> |
| 77 |
</tr> |
| 78 |
<tr class="field"><th class="field-name">githelp:</th><td class="field-body">try mapping git commands to Mercurial commands</td> |
| 79 |
</tr> |
| 80 |
<tr class="field"><th class="field-name">gpg:</th><td class="field-body">commands to sign and verify changesets</td> |
| 81 |
</tr> |
| 82 |
<tr class="field"><th class="field-name">hgk:</th><td class="field-body">browse the repository in a graphical way</td> |
| 83 |
</tr> |
| 84 |
<tr class="field"><th class="field-name">highlight:</th><td class="field-body">syntax highlighting for hgweb (requires Pygments)</td> |
| 85 |
</tr> |
| 86 |
<tr class="field"><th class="field-name">histedit:</th><td class="field-body">interactive history editing</td> |
| 87 |
</tr> |
| 88 |
<tr class="field"><th class="field-name">keyword:</th><td class="field-body">expand keywords in tracked files</td> |
| 89 |
</tr> |
| 90 |
<tr class="field"><th class="field-name">largefiles:</th><td class="field-body">track large binary files</td> |
| 91 |
</tr> |
| 92 |
<tr class="field"><th class="field-name">mq:</th><td class="field-body">manage a stack of patches</td> |
| 93 |
</tr> |
| 94 |
<tr class="field"><th class="field-name">notify:</th><td class="field-body">hooks for sending email push notifications</td> |
| 95 |
</tr> |
| 96 |
<tr class="field"><th class="field-name">patchbomb:</th><td class="field-body">command to send changesets as (a series of) patch emails</td> |
| 97 |
</tr> |
| 98 |
<tr class="field"><th class="field-name">rebase:</th><td class="field-body">command to move sets of revisions to a different ancestor</td> |
| 99 |
</tr> |
| 100 |
<tr class="field"><th class="field-name">relink:</th><td class="field-body">recreates hardlinks between repository clones</td> |
| 101 |
</tr> |
| 102 |
<tr class="field"><th class="field-name">schemes:</th><td class="field-body">extend schemes with shortcuts to repository swarms</td> |
| 103 |
</tr> |
| 104 |
<tr class="field"><th class="field-name">share:</th><td class="field-body">share a common history between several working directories</td> |
| 105 |
</tr> |
| 106 |
<tr class="field"><th class="field-name">transplant:</th><td class="field-body">command to transplant changesets from another branch</td> |
| 107 |
</tr> |
| 108 |
<tr class="field"><th class="field-name">win32mbcs:</th><td class="field-body">allow the use of MBCS paths with problematic encodings</td> |
| 109 |
</tr> |
| 110 |
<tr class="field"><th class="field-name">zeroconf:</th><td class="field-body">discover and advertise repositories on the local network</td> |
| 111 |
</tr> |
| 112 |
</tbody> |
| 113 |
</table> |
| 114 |
</blockquote> |
| 115 |
</div> |
| 116 |
</body> |
| 117 |
</html> |