Rev 6485: (jelmer) Implement bzrlib.config.Option.get_help_topic(). (Jelmer Vernooij) in file:///srv/pqm.bazaar-vcs.org/archives/thelove/bzr/%2Btrunk/
Patch Queue Manager
pqm at pqm.ubuntu.com
Tue Mar 6 19:21:56 UTC 2012
At file:///srv/pqm.bazaar-vcs.org/archives/thelove/bzr/%2Btrunk/
------------------------------------------------------------
revno: 6485 [merge]
revision-id: pqm at pqm.ubuntu.com-20120306192154-n01j73vwhj0a2fyi
parent: pqm at pqm.ubuntu.com-20120306185454-193n759x2o6x0vsd
parent: jelmer at samba.org-20120227095750-wawe5afzf81exigo
committer: Patch Queue Manager <pqm at pqm.ubuntu.com>
branch nick: +trunk
timestamp: Tue 2012-03-06 19:21:54 +0000
message:
(jelmer) Implement bzrlib.config.Option.get_help_topic(). (Jelmer Vernooij)
modified:
bzrlib/config.py config.py-20051011043216-070c74f4e9e338e8
bzrlib/tests/test_config.py testconfig.py-20051011041908-742d0c15d8d8c8eb
doc/en/release-notes/bzr-2.5.txt bzr2.5.txt-20110708125756-587p0hpw7oke4h05-1
=== modified file 'bzrlib/config.py'
--- a/bzrlib/config.py 2012-02-20 17:38:11 +0000
+++ b/bzrlib/config.py 2012-03-06 19:21:54 +0000
@@ -2435,6 +2435,9 @@
value = self.default
return value
+ def get_help_topic(self):
+ return self.name
+
def get_help_text(self, additional_see_also=None, plain=True):
result = self.help
from bzrlib import help_topics
=== modified file 'bzrlib/tests/test_config.py'
--- a/bzrlib/tests/test_config.py 2012-02-20 17:38:11 +0000
+++ b/bzrlib/tests/test_config.py 2012-03-06 19:21:54 +0000
@@ -2328,6 +2328,10 @@
opt = config.Option('foo', default=bar_not_unicode)
self.assertRaises(AssertionError, opt.get_default)
+ def test_get_help_topic(self):
+ opt = config.Option('foo')
+ self.assertEquals('foo', opt.get_help_topic())
+
class TestOptionConverterMixin(object):
=== modified file 'doc/en/release-notes/bzr-2.5.txt'
--- a/doc/en/release-notes/bzr-2.5.txt 2012-03-06 18:11:05 +0000
+++ b/doc/en/release-notes/bzr-2.5.txt 2012-03-06 19:21:54 +0000
@@ -36,6 +36,9 @@
.. Fixes for situations where bzr would previously crash or give incorrect
or undesirable results.
+* Make sure configuration options can provide their own help topic.
+ (Jelmer Vernooij, #941672)
+
Documentation
*************
More information about the bazaar-commits
mailing list