[PATCH] help: add reference to template help (issue3413)

A. S. Budden abudden at gmail.com
Tue May 1 16:17:54 CDT 2012


# HG changeset patch
# User A. S. Budden <abudden at gmail.com>
# Date 1335906891 -3600
# Node ID cf1ea528ea061db3ccc8102926506b9f13b5ce27
# Parent  55982f62651f1974fcd91197f1c4801cc98a48f2
help: add reference to template help (issue3413)

There is currently no clear link between the help for log
and the help on templates.  The log option is --template
but the template help is 'help templating' or 'help templates'.
This patch makes 'hg help template' work and also adds a
note into the log help explaining where to find more info.

diff -r 55982f62651f -r cf1ea528ea06 mercurial/commands.py
--- a/mercurial/commands.py	Wed Apr 18 01:20:16 2012 +0300
+++ b/mercurial/commands.py	Tue May 01 22:14:51 2012 +0100
@@ -3927,6 +3927,9 @@
     See :hg:`help revisions` and :hg:`help revsets` for more about
     specifying revisions.
 
+    See :hg:`help templates` for more about pre-packaged styles and
+    specifying custom templates.
+
     Returns 0 on success.
     """
 
diff -r 55982f62651f -r cf1ea528ea06 mercurial/help.py
--- a/mercurial/help.py	Wed Apr 18 01:20:16 2012 +0300
+++ b/mercurial/help.py	Tue May 01 22:14:51 2012 +0100
@@ -64,7 +64,7 @@
     (['fileset', 'filesets'], _("Specifying File Sets"), loaddoc('filesets')),
     (['diffs'], _('Diff Formats'), loaddoc('diffs')),
     (['merge-tools'], _('Merge Tools'), loaddoc('merge-tools')),
-    (['templating', 'templates'], _('Template Usage'),
+    (['templating', 'templates', 'template', 'style'], _('Template Usage'),
      loaddoc('templates')),
     (['urls'], _('URL Paths'), loaddoc('urls')),
     (["extensions"], _("Using additional features"), extshelp),


More information about the Mercurial-devel mailing list