# HG changeset patch # User Johannes Stezenbach # Date 1212519414 -7200 # Node ID a78d8edaeedd8e90046ef9e40736f0f083649484 # Parent ffcf8e82f6475b810d8518766160cd8a431352bd help: list special help topics with -v diff -r ffcf8e82f647 -r a78d8edaeedd mercurial/commands.py --- a/mercurial/commands.py Sat Jun 07 09:49:34 2008 +0200 +++ b/mercurial/commands.py Tue Jun 03 20:56:54 2008 +0200 @@ -1401,6 +1401,16 @@ and _(" (default: %s)") % default or ""))) + if ui.verbose: + ui.write(_("\nspecial help topics:\n")) + topics = [] + for i in help.helptable: + l = i.split('|') + topics.append((", ".join(l[:-1]), l[-1])) + topics_len = max([len(s[0]) for s in topics]) + for t, desc in topics: + ui.write(" %-*s %s\n" % (topics_len, t, desc)) + if opt_output: opts_len = max([len(line[0]) for line in opt_output if line[1]] or [0]) for first, second in opt_output: diff -r ffcf8e82f647 -r a78d8edaeedd tests/test-extension.out --- a/tests/test-extension.out Sat Jun 07 09:49:34 2008 +0200 +++ b/tests/test-extension.out Tue Jun 03 20:56:54 2008 +0200 @@ -33,6 +33,11 @@ debugfoobar: yet another debug command +special help topics: + dates Date Formats + patterns File Name Patterns + environment, env Environment Variables + global options: -R --repository repository root directory or symbolic path name --cwd change working directory