Mercurial > public > mercurial-scm > hg-stable
diff 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 |
line wrap: on
line diff
--- a/mercurial/help.py Tue Apr 05 11:09:08 2011 +0200 +++ b/mercurial/help.py Tue Apr 05 12:40:47 2011 +0800 @@ -86,7 +86,7 @@ return loader -helptable = [ +helptable = sorted([ (["config", "hgrc"], _("Configuration Files"), loaddoc('config')), (["dates"], _("Date Formats"), loaddoc('dates')), (["patterns"], _("File Name Patterns"), loaddoc('patterns')), @@ -106,7 +106,7 @@ (["subrepo", "subrepos"], _("Subrepositories"), loaddoc('subrepos')), (["hgweb"], _("Configuring hgweb"), loaddoc('hgweb')), (["glossary"], _("Glossary"), loaddoc('glossary')), -] +]) # Map topics to lists of callable taking the current topic help and # returning the updated version