diff mercurial/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 1144c69c7f58
children 752c5a5b73c6
line wrap: on
line diff
--- a/mercurial/commands.py	Wed Aug 09 15:46:35 2023 +0200
+++ b/mercurial/commands.py	Wed Jan 25 15:33:39 2023 +0100
@@ -19,6 +19,7 @@
     wdirrev,
 )
 from . import (
+    admin_commands as admin_commands_mod,
     archival,
     bookmarks,
     bundle2,
@@ -75,6 +76,7 @@
 
 table = {}
 table.update(debugcommandsmod.command._table)
+table.update(admin_commands_mod.command._table)
 
 command = registrar.command(table)
 INTENT_READONLY = registrar.INTENT_READONLY