Rev 2433: Add a HelpTopicContext object. in file:///home/robertc/source/baz/help-contexts/

Robert Collins robertc at robertcollins.net
Fri Apr 20 00:54:47 BST 2007


At file:///home/robertc/source/baz/help-contexts/

------------------------------------------------------------
revno: 2433
revision-id: robertc at robertcollins.net-20070419235443-nu7zolsraales40g
parent: pqm at pqm.ubuntu.com-20070419224637-jvlshh6kibtj43a5
committer: Robert Collins <robertc at robertcollins.net>
branch nick: help-contexts
timestamp: Fri 2007-04-20 09:54:43 +1000
message:
  Add a HelpTopicContext object.
modified:
  bzrlib/help.py                 help.py-20050505025907-4dd7a6d63912f894
  bzrlib/help_topics.py          help_topics.py-20060920210027-rnim90q9e0bwxvy4-1
  bzrlib/tests/test_help.py      test_help.py-20070419045354-6q6rq15j9e2n5fna-1
=== modified file 'bzrlib/help.py'
--- a/bzrlib/help.py	2007-04-19 04:54:08 +0000
+++ b/bzrlib/help.py	2007-04-19 23:54:43 +0000
@@ -180,6 +180,6 @@
 help_topics.topic_registry.register("commands",
                                     _help_commands_to_text,
                                     "Basic help for all commands")
-help_topics.topic_registry.register("hidden-commands", 
+help_topics.topic_registry.register("hidden-commands",
                                     _help_commands_to_text,
                                     "All hidden commands")

=== modified file 'bzrlib/help_topics.py'
--- a/bzrlib/help_topics.py	2007-04-01 15:52:43 +0000
+++ b/bzrlib/help_topics.py	2007-04-19 23:54:43 +0000
@@ -243,3 +243,6 @@
 topic_registry.register('checkouts', _checkouts,
                         'Information on what a checkout is')
 
+
+class HelpTopicContext(object):
+    """A context for bzr help that returns topics."""

=== modified file 'bzrlib/tests/test_help.py'
--- a/bzrlib/tests/test_help.py	2007-04-19 07:40:42 +0000
+++ b/bzrlib/tests/test_help.py	2007-04-19 23:54:43 +0000
@@ -21,6 +21,7 @@
 from bzrlib import (
     commands,
     help,
+    help_topics,
     tests,
     )
 
@@ -40,3 +41,11 @@
             '  -h, --help  show help message\n'
             '\n'
             'See also: bar, foo\n')
+
+
+class TestTopicContext(tests.TestCase):
+    """Tests for the HelpTopicContext object."""
+
+    def test_construct(self):
+        context = help_topics.HelpTopicContext()
+



More information about the bazaar-commits mailing list