Mercurial > public > mercurial-scm > hg-stable
diff mercurial/admin_commands.py @ 50995:727428c7e1fc
commands: add admin namespace
In order to stop abusing the 'debug' namespace for non-debug command,
it adds a new 'admin' namespace dedicated to 'admin' operations on a
repository (i.e commands suitable for administration tasks).
This namespace entry would be used to migrate in the future some
existing commands from the 'debug' namespace, or other top level
commands that may not be directly exposed to end users.
(verify command is a perfect candidate for this case)
author | Franck Bret <franck.bret@octobus.net> |
---|---|
date | Wed, 25 Jan 2023 15:33:39 +0100 |
parents | |
children | 752c5a5b73c6 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mercurial/admin_commands.py Wed Jan 25 15:33:39 2023 +0100 @@ -0,0 +1,11 @@ +# admin_commands.py - command processing for admin* commands +# +# Copyright 2022 Mercurial Developers +# +# This software may be used and distributed according to the terms of the +# GNU General Public License version 2 or any later version. + +from . import registrar + +table = {} +command = registrar.command(table)