comparison mercurial/admin_commands.py @ 51500: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
comparison
equal deleted inserted replaced
51499:a5d8f261b716 51500:d4095f7b000a
4 # 4 #
5 # This software may be used and distributed according to the terms of the 5 # This software may be used and distributed according to the terms of the
6 # GNU General Public License version 2 or any later version. 6 # GNU General Public License version 2 or any later version.
7 7
8 from .i18n import _ 8 from .i18n import _
9 from .admin import verify 9 from .admin import chainsaw, verify
10 from . import error, registrar, transaction 10 from . import error, registrar, transaction
11 11
12 12
13 table = {} 13 table = {}
14 table.update(chainsaw.command._table)
14 command = registrar.command(table) 15 command = registrar.command(table)
15 16
16 17
17 @command( 18 @command(
18 b'admin::verify', 19 b'admin::verify',