view mercurial-tests/testData/bin/help/extensions.txt @ 1063:4b6661db8a8a Lakhnau-2020.2.x

TW-70509 prohibit creating VCS root with either repo name or branch name containing suspicicios options (grafted from 04407dc0f4967d24d53fe2a983afa4d11531684b)
author victory.bedrosova
date Thu, 11 Mar 2021 15:32:03 +0100
parents 2e52f00a3c94
line wrap: on
line source
Mercurial has the ability to add new features through the use of
extensions. Extensions may add new commands, add options to
existing commands, change the default behavior of commands, or
implement hooks.

Extensions are not loaded by default for a variety of reasons:
they can increase startup overhead; they may be meant for advanced
usage only; they may provide potentially dangerous abilities (such
as letting you destroy or modify history); they might not be ready
for prime time; or they may alter some usual behaviors of stock
Mercurial. It is thus up to the user to activate extensions as

To enable the "foo" extension, either shipped with Mercurial or in
the Python search path, create an entry for it in your hgrc, like

  foo =

You may also specify the full path to an extension::

  myfeature = ~/.hgext/

To explicitly disable an extension enabled in an hgrc of broader
scope, prepend its path with !::

  # disabling extension bar residing in /path/to/extension/
  bar = !/path/to/extension/
  # ditto, but no path was supplied for extension baz
  baz = !