diff --git a/mercurial/help.py b/mercurial/help.py --- a/mercurial/help.py +++ b/mercurial/help.py @@ -86,7 +86,7 @@ def loaddoc(topic): 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 @@ helptable = [ (["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 diff --git a/tests/test-globalopts.t b/tests/test-globalopts.t --- a/tests/test-globalopts.t +++ b/tests/test-globalopts.t @@ -335,22 +335,24 @@ Testing -h/--help: config Configuration Files dates Date Formats - patterns File Name Patterns + diffs Diff Formats environment Environment Variables - revisions Specifying Single Revisions + extensions Using additional features + glossary Glossary + hgweb Configuring hgweb + merge-tools Merge Tools multirevs Specifying Multiple Revisions + patterns File Name Patterns + revisions Specifying Single Revisions revsets Specifying Revision Sets - diffs Diff Formats - merge-tools Merge Tools + subrepos Subrepositories templating Template Usage urls URL Paths - extensions Using additional features - subrepos Subrepositories - hgweb Configuring hgweb - glossary Glossary use "hg -v help" to show builtin aliases and global options + + $ hg --help Mercurial Distributed SCM @@ -412,19 +414,19 @@ Testing -h/--help: config Configuration Files dates Date Formats - patterns File Name Patterns + diffs Diff Formats environment Environment Variables - revisions Specifying Single Revisions + extensions Using additional features + glossary Glossary + hgweb Configuring hgweb + merge-tools Merge Tools multirevs Specifying Multiple Revisions + patterns File Name Patterns + revisions Specifying Single Revisions revsets Specifying Revision Sets - diffs Diff Formats - merge-tools Merge Tools + subrepos Subrepositories templating Template Usage urls URL Paths - extensions Using additional features - subrepos Subrepositories - hgweb Configuring hgweb - glossary Glossary use "hg -v help" to show builtin aliases and global options diff --git a/tests/test-help.t b/tests/test-help.t --- a/tests/test-help.t +++ b/tests/test-help.t @@ -105,19 +105,19 @@ Short help: config Configuration Files dates Date Formats - patterns File Name Patterns + diffs Diff Formats environment Environment Variables - revisions Specifying Single Revisions + extensions Using additional features + glossary Glossary + hgweb Configuring hgweb + merge-tools Merge Tools multirevs Specifying Multiple Revisions + patterns File Name Patterns + revisions Specifying Single Revisions revsets Specifying Revision Sets - diffs Diff Formats - merge-tools Merge Tools + subrepos Subrepositories templating Template Usage urls URL Paths - extensions Using additional features - subrepos Subrepositories - hgweb Configuring hgweb - glossary Glossary use "hg -v help" to show builtin aliases and global options @@ -178,19 +178,19 @@ Short help: config Configuration Files dates Date Formats - patterns File Name Patterns + diffs Diff Formats environment Environment Variables - revisions Specifying Single Revisions + extensions Using additional features + glossary Glossary + hgweb Configuring hgweb + merge-tools Merge Tools multirevs Specifying Multiple Revisions + patterns File Name Patterns + revisions Specifying Single Revisions revsets Specifying Revision Sets - diffs Diff Formats - merge-tools Merge Tools + subrepos Subrepositories templating Template Usage urls URL Paths - extensions Using additional features - subrepos Subrepositories - hgweb Configuring hgweb - glossary Glossary Test short command list with verbose option @@ -705,22 +705,24 @@ Test that default list of commands omits config Configuration Files dates Date Formats - patterns File Name Patterns + diffs Diff Formats environment Environment Variables - revisions Specifying Single Revisions + extensions Using additional features + glossary Glossary + hgweb Configuring hgweb + merge-tools Merge Tools multirevs Specifying Multiple Revisions + patterns File Name Patterns + revisions Specifying Single Revisions revsets Specifying Revision Sets - diffs Diff Formats - merge-tools Merge Tools + subrepos Subrepositories templating Template Usage urls URL Paths - extensions Using additional features - subrepos Subrepositories - hgweb Configuring hgweb - glossary Glossary use "hg -v help" to show builtin aliases and global options + + Test list of commands with command with no help text $ hg help helpext