Mercurial > public > mercurial-scm > hg
comparison mercurial/help.py @ 13888:9e5407a67dea
help: sort help topics to make the output more readable (issue2751)
author | Yun Lee <yunlee.bj@gmail.com> |
---|---|
date | Tue, 05 Apr 2011 12:40:47 +0800 |
parents | cc4721ed7a2a |
children | 0528b69f8db4 |
comparison
equal
deleted
inserted
replaced
13887:06803dc5fc19 | 13888:9e5407a67dea |
---|---|
84 doc = rewriter(topic, doc) | 84 doc = rewriter(topic, doc) |
85 return doc | 85 return doc |
86 | 86 |
87 return loader | 87 return loader |
88 | 88 |
89 helptable = [ | 89 helptable = sorted([ |
90 (["config", "hgrc"], _("Configuration Files"), loaddoc('config')), | 90 (["config", "hgrc"], _("Configuration Files"), loaddoc('config')), |
91 (["dates"], _("Date Formats"), loaddoc('dates')), | 91 (["dates"], _("Date Formats"), loaddoc('dates')), |
92 (["patterns"], _("File Name Patterns"), loaddoc('patterns')), | 92 (["patterns"], _("File Name Patterns"), loaddoc('patterns')), |
93 (['environment', 'env'], _('Environment Variables'), | 93 (['environment', 'env'], _('Environment Variables'), |
94 loaddoc('environment')), | 94 loaddoc('environment')), |
104 (['urls'], _('URL Paths'), loaddoc('urls')), | 104 (['urls'], _('URL Paths'), loaddoc('urls')), |
105 (["extensions"], _("Using additional features"), extshelp), | 105 (["extensions"], _("Using additional features"), extshelp), |
106 (["subrepo", "subrepos"], _("Subrepositories"), loaddoc('subrepos')), | 106 (["subrepo", "subrepos"], _("Subrepositories"), loaddoc('subrepos')), |
107 (["hgweb"], _("Configuring hgweb"), loaddoc('hgweb')), | 107 (["hgweb"], _("Configuring hgweb"), loaddoc('hgweb')), |
108 (["glossary"], _("Glossary"), loaddoc('glossary')), | 108 (["glossary"], _("Glossary"), loaddoc('glossary')), |
109 ] | 109 ]) |
110 | 110 |
111 # Map topics to lists of callable taking the current topic help and | 111 # Map topics to lists of callable taking the current topic help and |
112 # returning the updated version | 112 # returning the updated version |
113 helphooks = { | 113 helphooks = { |
114 } | 114 } |