Mercurial > hg
comparison mercurial/help.py @ 11657:5ed6802e6bcb stable
help: make helptable a list instead of a tuple
The table should always have been a list so that extensions can append
their own help topics -- hgsubversion would like to do this now.
author | Martin Geisler <mg@lazybytes.net> |
---|---|
date | Thu, 22 Jul 2010 21:43:45 +0200 |
parents | 2f09b13e914d |
children | c407b4ca666e |
comparison
equal
deleted
inserted
replaced
11650:ebaf117c2642 | 11657:5ed6802e6bcb |
---|---|
80 | 80 |
81 path = os.path.join(docdir, topic + ".txt") | 81 path = os.path.join(docdir, topic + ".txt") |
82 return gettext(open(path).read()) | 82 return gettext(open(path).read()) |
83 return loader | 83 return loader |
84 | 84 |
85 helptable = ( | 85 helptable = [ |
86 (["config"], _("Configuration Files"), loaddoc('config')), | 86 (["config"], _("Configuration Files"), loaddoc('config')), |
87 (["dates"], _("Date Formats"), loaddoc('dates')), | 87 (["dates"], _("Date Formats"), loaddoc('dates')), |
88 (["patterns"], _("File Name Patterns"), loaddoc('patterns')), | 88 (["patterns"], _("File Name Patterns"), loaddoc('patterns')), |
89 (['environment', 'env'], _('Environment Variables'), | 89 (['environment', 'env'], _('Environment Variables'), |
90 loaddoc('environment')), | 90 loaddoc('environment')), |
98 loaddoc('templates')), | 98 loaddoc('templates')), |
99 (['urls'], _('URL Paths'), loaddoc('urls')), | 99 (['urls'], _('URL Paths'), loaddoc('urls')), |
100 (["extensions"], _("Using additional features"), extshelp), | 100 (["extensions"], _("Using additional features"), extshelp), |
101 (["hgweb"], _("Configuring hgweb"), loaddoc('hgweb')), | 101 (["hgweb"], _("Configuring hgweb"), loaddoc('hgweb')), |
102 (["glossary"], _("Glossary"), loaddoc('glossary')), | 102 (["glossary"], _("Glossary"), loaddoc('glossary')), |
103 ) | 103 ] |