Rev 2434: Add a HelpCommandContext class for help from commands. in file:///home/robertc/source/baz/help-contexts/
Robert Collins
robertc at robertcollins.net
Fri Apr 20 00:57:24 BST 2007
At file:///home/robertc/source/baz/help-contexts/
------------------------------------------------------------
revno: 2434
revision-id: robertc at robertcollins.net-20070419235717-rdjuxno46v5ugs7y
parent: robertc at robertcollins.net-20070419235443-nu7zolsraales40g
committer: Robert Collins <robertc at robertcollins.net>
branch nick: help-contexts
timestamp: Fri 2007-04-20 09:57:17 +1000
message:
Add a HelpCommandContext class for help from commands.
modified:
bzrlib/commands.py bzr.py-20050309040720-d10f4714595cf8c3
bzrlib/tests/test_help.py test_help.py-20070419045354-6q6rq15j9e2n5fna-1
=== modified file 'bzrlib/commands.py'
--- a/bzrlib/commands.py 2007-04-18 08:39:02 +0000
+++ b/bzrlib/commands.py 2007-04-19 23:57:17 +0000
@@ -657,5 +657,10 @@
pdb.post_mortem(sys.exc_traceback)
return 3
+
+class HelpCommandContext(object):
+ """A context for bzr help that returns commands."""
+
+
if __name__ == '__main__':
sys.exit(main(sys.argv))
=== modified file 'bzrlib/tests/test_help.py'
--- a/bzrlib/tests/test_help.py 2007-04-19 23:54:43 +0000
+++ b/bzrlib/tests/test_help.py 2007-04-19 23:57:17 +0000
@@ -49,3 +49,9 @@
def test_construct(self):
context = help_topics.HelpTopicContext()
+
+class TestCommandContext(tests.TestCase):
+ """Tests for the HelpCommandContext object."""
+
+ def test_construct(self):
+ context = commands.HelpCommandContext()
More information about the bazaar-commits
mailing list