Show More
@@ -12,18 +12,21 b' import extensions, revset, fileset, temp' | |||
|
12 | 12 | import encoding, util, minirst |
|
13 | 13 | import cmdutil |
|
14 | 14 | |
|
15 | def listexts(header, exts, indent=1): | |
|
15 | def listexts(header, exts, indent=1, showdeprecated=False): | |
|
16 | 16 | '''return a text listing of the given extensions''' |
|
17 | 17 | rst = [] |
|
18 | 18 | if exts: |
|
19 | 19 | rst.append('\n%s\n\n' % header) |
|
20 | 20 | for name, desc in sorted(exts.iteritems()): |
|
21 | if '(DEPRECATED)' in desc and not showdeprecated: | |
|
22 | continue | |
|
21 | 23 | rst.append('%s:%s: %s\n' % (' ' * indent, name, desc)) |
|
22 | 24 | return rst |
|
23 | 25 | |
|
24 | 26 | def extshelp(): |
|
25 | 27 | rst = loaddoc('extensions')().splitlines(True) |
|
26 | rst.extend(listexts(_('enabled extensions:'), extensions.enabled())) | |
|
28 | rst.extend(listexts( | |
|
29 | _('enabled extensions:'), extensions.enabled(), showdeprecated=True)) | |
|
27 | 30 | rst.extend(listexts(_('disabled extensions:'), extensions.disabled())) |
|
28 | 31 | doc = ''.join(rst) |
|
29 | 32 | return doc |
@@ -254,9 +254,7 b' Test extension help:' | |||
|
254 | 254 | eol automatically manage newlines in repository files |
|
255 | 255 | extdiff command to allow external programs to compare revisions |
|
256 | 256 | factotum http authentication with factotum |
|
257 | fetch pull, update and merge in one command (DEPRECATED) | |
|
258 | 257 | gpg commands to sign and verify changesets |
|
259 | graphlog command to view revision graphs from a shell (DEPRECATED) | |
|
260 | 258 | hgcia hooks for integrating with the CIA.vc notification service |
|
261 | 259 | hgk browse the repository in a graphical way |
|
262 | 260 | highlight syntax highlighting for hgweb (requires Pygments) |
General Comments 0
You need to be logged in to leave comments.
Login now