Mercurial > public > mercurial-scm > hg
comparison mercurial/help.py @ 14686:6ab8b17adc03
fileset: add a help topic
Add crosslinking with patterns topic.
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sat, 18 Jun 2011 16:53:49 -0500 |
parents | 1f46be4689ed |
children | 4a28cb4df1f8 |
comparison
equal
deleted
inserted
replaced
14685:394121d9f4fc | 14686:6ab8b17adc03 |
---|---|
5 # This software may be used and distributed according to the terms of the | 5 # This software may be used and distributed according to the terms of the |
6 # GNU General Public License version 2 or any later version. | 6 # GNU General Public License version 2 or any later version. |
7 | 7 |
8 from i18n import gettext, _ | 8 from i18n import gettext, _ |
9 import sys, os | 9 import sys, os |
10 import extensions, revset, templatekw, templatefilters | 10 import extensions, revset, fileset, templatekw, templatefilters |
11 import util | 11 import util |
12 | 12 |
13 def listexts(header, exts, indent=1): | 13 def listexts(header, exts, indent=1): |
14 '''return a text listing of the given extensions''' | 14 '''return a text listing of the given extensions''' |
15 if not exts: | 15 if not exts: |
59 (['revs', 'revisions'], _('Specifying Single Revisions'), | 59 (['revs', 'revisions'], _('Specifying Single Revisions'), |
60 loaddoc('revisions')), | 60 loaddoc('revisions')), |
61 (['mrevs', 'multirevs'], _('Specifying Multiple Revisions'), | 61 (['mrevs', 'multirevs'], _('Specifying Multiple Revisions'), |
62 loaddoc('multirevs')), | 62 loaddoc('multirevs')), |
63 (['revset', 'revsets'], _("Specifying Revision Sets"), loaddoc('revsets')), | 63 (['revset', 'revsets'], _("Specifying Revision Sets"), loaddoc('revsets')), |
64 (['fileset', 'filesets'], _("Specifying File Sets"), loaddoc('filesets')), | |
64 (['diffs'], _('Diff Formats'), loaddoc('diffs')), | 65 (['diffs'], _('Diff Formats'), loaddoc('diffs')), |
65 (['merge-tools'], _('Merge Tools'), loaddoc('merge-tools')), | 66 (['merge-tools'], _('Merge Tools'), loaddoc('merge-tools')), |
66 (['templating', 'templates'], _('Template Usage'), | 67 (['templating', 'templates'], _('Template Usage'), |
67 loaddoc('templates')), | 68 loaddoc('templates')), |
68 (['urls'], _('URL Paths'), loaddoc('urls')), | 69 (['urls'], _('URL Paths'), loaddoc('urls')), |
100 def addtopicsymbols(topic, marker, symbols): | 101 def addtopicsymbols(topic, marker, symbols): |
101 def add(topic, doc): | 102 def add(topic, doc): |
102 return makeitemsdoc(topic, doc, marker, symbols) | 103 return makeitemsdoc(topic, doc, marker, symbols) |
103 addtopichook(topic, add) | 104 addtopichook(topic, add) |
104 | 105 |
106 addtopicsymbols('filesets', '.. predicatesmarker', fileset.symbols) | |
105 addtopicsymbols('revsets', '.. predicatesmarker', revset.symbols) | 107 addtopicsymbols('revsets', '.. predicatesmarker', revset.symbols) |
106 addtopicsymbols('templates', '.. keywordsmarker', templatekw.keywords) | 108 addtopicsymbols('templates', '.. keywordsmarker', templatekw.keywords) |
107 addtopicsymbols('templates', '.. filtersmarker', templatefilters.filters) | 109 addtopicsymbols('templates', '.. filtersmarker', templatefilters.filters) |