--- a/mercurial/help.py Sun Aug 02 23:38:08 2009 +0200
+++ b/mercurial/help.py Mon Aug 03 00:01:50 2009 +0200
@@ -43,11 +43,9 @@
'''return a text listing of the given extensions'''
if not exts:
return ''
- # TODO: literal block is wrong, should be a field list or a simple table.
- result = '\n%s\n\n ::\n\n' % header
+ result = '\n%s\n\n' % header
for name, desc in sorted(exts.iteritems()):
- desc = util.wrap(desc, maxlength + 5)
- result += ' %s %s\n' % (name.ljust(maxlength), desc)
+ result += ' %-*s %s\n' % (maxlength + 2, ':%s:' % name, desc)
return result
def extshelp():
--- a/tests/test-extension.out Sun Aug 02 23:38:08 2009 +0200
+++ b/tests/test-extension.out Mon Aug 03 00:01:50 2009 +0200
@@ -33,7 +33,7 @@
enabled extensions:
- debugextension only debugcommands
+ debugextension only debugcommands
global options:
-R --repository repository root directory or symbolic path name
@@ -63,7 +63,7 @@
enabled extensions:
- debugextension only debugcommands
+ debugextension only debugcommands
global options:
-R --repository repository root directory or symbolic path name
--- a/tests/test-keyword.out Sun Aug 02 23:38:08 2009 +0200
+++ b/tests/test-keyword.out Mon Aug 03 00:01:50 2009 +0200
@@ -54,9 +54,9 @@
enabled extensions:
- keyword expand keywords in tracked files
- mq manage a stack of patches
- notify hooks for sending email notifications at commit/push time
+ keyword expand keywords in tracked files
+ mq manage a stack of patches
+ notify hooks for sending email notifications at commit/push time
use "hg -v help keyword" to show aliases and global options
% hg kwdemo
--- a/tests/test-mq.out Sun Aug 02 23:38:08 2009 +0200
+++ b/tests/test-mq.out Mon Aug 03 00:01:50 2009 +0200
@@ -53,7 +53,7 @@
enabled extensions:
- mq manage a stack of patches
+ mq manage a stack of patches
use "hg -v help mq" to show aliases and global options
adding a