Mercurial > public > mercurial-scm > hg-stable
diff mercurial/admin_commands.py @ 51454:d4095f7b000a stable
admin-commands: move the chainsaw extension to the admin commands module
Activating an extension is always a little bit of a chore and the long name,
options and "chainsaw" bits are deterrent enough.
This also allows us to help the discoverability for people looking for
repo "administration" tools, with the widest semantic of "administration".
author | Rapha?l Gom?s <rgomes@octobus.net> |
---|---|
date | Thu, 14 Mar 2024 11:24:52 +0100 |
parents | 752c5a5b73c6 |
children | a93e60ebea09 |
line wrap: on
line diff
--- a/mercurial/admin_commands.py Wed Mar 13 16:22:13 2024 -0300 +++ b/mercurial/admin_commands.py Thu Mar 14 11:24:52 2024 +0100 @@ -6,11 +6,12 @@ # GNU General Public License version 2 or any later version. from .i18n import _ -from .admin import verify +from .admin import chainsaw, verify from . import error, registrar, transaction table = {} +table.update(chainsaw.command._table) command = registrar.command(table)