##// END OF EJS Templates
show enabled extensions in hg help
Dirkjan Ochtman -
r7125:4a1ac535 default
parent child Browse files
Show More
@@ -1335,6 +1335,19 b' def help_(ui, name=None, with_version=Fa'
1335 else:
1335 else:
1336 ui.write(' %-*s %s\n' % (m, f, h[f]))
1336 ui.write(' %-*s %s\n' % (m, f, h[f]))
1337
1337
1338 exts = list(extensions.extensions())
1339 if exts:
1340 ui.write(_('\nenabled extensions:\n\n'))
1341 maxlength = 0
1342 exthelps = []
1343 for ename, ext in exts:
1344 doc = (ext.__doc__ or _('(no help text available)'))
1345 ename = ename.split('.')[-1]
1346 maxlength = max(len(ename), maxlength)
1347 exthelps.append((ename, doc.splitlines(0)[0].strip()))
1348 for ename, text in exthelps:
1349 ui.write(_(' %s %s\n') % (ename.ljust(maxlength), text))
1350
1338 if not ui.quiet:
1351 if not ui.quiet:
1339 addglobalopts(True)
1352 addglobalopts(True)
1340
1353
@@ -33,6 +33,10 b' list of commands:'
33 debugfoobar:
33 debugfoobar:
34 yet another debug command
34 yet another debug command
35
35
36 enabled extensions:
37
38 debugextension only debugcommands
39
36 special help topics:
40 special help topics:
37 dates Date Formats
41 dates Date Formats
38 patterns File Name Patterns
42 patterns File Name Patterns
@@ -51,6 +51,12 b' list of commands:'
51 kwfiles print files currently configured for keyword expansion
51 kwfiles print files currently configured for keyword expansion
52 kwshrink revert expanded keywords in working directory
52 kwshrink revert expanded keywords in working directory
53
53
54 enabled extensions:
55
56 keyword keyword expansion in local repositories
57 mq patch management and development
58 notify (no help text available)
59
54 use "hg -v help keyword" to show aliases and global options
60 use "hg -v help keyword" to show aliases and global options
55 % hg kwdemo
61 % hg kwdemo
56 [extensions]
62 [extensions]
@@ -51,6 +51,10 b' list of commands:'
51 qunapplied print the patches not yet applied
51 qunapplied print the patches not yet applied
52 strip strip a revision and all its descendants from the repository
52 strip strip a revision and all its descendants from the repository
53
53
54 enabled extensions:
55
56 mq patch management and development
57
54 use "hg -v help mq" to show aliases and global options
58 use "hg -v help mq" to show aliases and global options
55 adding a
59 adding a
56 updating working directory
60 updating working directory
@@ -21,6 +21,10 b' basic commands:'
21 status show changed files in the working directory
21 status show changed files in the working directory
22 update update working directory
22 update update working directory
23
23
24 enabled extensions:
25
26 record interactive change selection during commit or qrefresh
27
24 use "hg help" for the full list of commands or "hg -v" for details
28 use "hg help" for the full list of commands or "hg -v" for details
25 % help (mq present)
29 % help (mq present)
26 hg qrecord [OPTION]... PATCH [FILE]...
30 hg qrecord [OPTION]... PATCH [FILE]...
General Comments 0
You need to be logged in to leave comments. Login now