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