##// END OF EJS Templates
commands: add admin namespace...
Franck Bret -
r51880:727428c7 default
parent child Browse files
Show More
1 NO CONTENT: new file 100644
NO CONTENT: new file 100644
@@ -0,0 +1,11 b''
1 # admin_commands.py - command processing for admin* commands
2 #
3 # Copyright 2022 Mercurial Developers
4 #
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.
7
8 from . import registrar
9
10 table = {}
11 command = registrar.command(table)
@@ -19,6 +19,7 b' from .node import ('
19 wdirrev,
19 wdirrev,
20 )
20 )
21 from . import (
21 from . import (
22 admin_commands as admin_commands_mod,
22 archival,
23 archival,
23 bookmarks,
24 bookmarks,
24 bundle2,
25 bundle2,
@@ -75,6 +76,7 b' from .utils import ('
75
76
76 table = {}
77 table = {}
77 table.update(debugcommandsmod.command._table)
78 table.update(debugcommandsmod.command._table)
79 table.update(admin_commands_mod.command._table)
78
80
79 command = registrar.command(table)
81 command = registrar.command(table)
80 INTENT_READONLY = registrar.INTENT_READONLY
82 INTENT_READONLY = registrar.INTENT_READONLY
@@ -1309,6 +1309,7 b' if py2exehacked:'
1309
1309
1310 packages = [
1310 packages = [
1311 'mercurial',
1311 'mercurial',
1312 'mercurial.admin',
1312 'mercurial.cext',
1313 'mercurial.cext',
1313 'mercurial.cffi',
1314 'mercurial.cffi',
1314 'mercurial.defaultrc',
1315 'mercurial.defaultrc',
@@ -68,17 +68,17 b' basic'
68 help
68 help
69
69
70 $ hg help -c | grep myinit
70 $ hg help -c | grep myinit
71 myinit This is my documented alias for init.
71 myinit This is my documented alias for init.
72 $ hg help -c | grep mycommit
72 $ hg help -c | grep mycommit
73 mycommit This is my alias with only doc.
73 mycommit This is my alias with only doc.
74 $ hg help -c | grep cleanstatus
74 $ hg help -c | grep cleanstatus
75 [1]
75 [1]
76 $ hg help -c | grep lognull
76 $ hg help -c | grep lognull
77 lognull Logs the null rev
77 lognull Logs the null rev
78 $ hg help -c | grep dln
78 $ hg help -c | grep dln
79 [1]
79 [1]
80 $ hg help -c | grep recursivedoc
80 $ hg help -c | grep recursivedoc
81 recursivedoc Logs the null rev in debug mode
81 recursivedoc Logs the null rev in debug mode
82 $ hg help myinit
82 $ hg help myinit
83 hg myinit [OPTIONS] [BLA] [BLE]
83 hg myinit [OPTIONS] [BLA] [BLE]
84
84
@@ -603,7 +603,7 b' command provided extension, should be ab'
603 help for a shell alias
603 help for a shell alias
604
604
605 $ hg help -c | grep rebate
605 $ hg help -c | grep rebate
606 rebate This is my alias which just prints something.
606 rebate This is my alias which just prints something.
607 $ hg help rebate
607 $ hg help rebate
608 hg rebate [MYARGS]
608 hg rebate [MYARGS]
609
609
General Comments 0
You need to be logged in to leave comments. Login now