Merge lp:~jelmer/bzr/2.5-config-help-topics into lp:bzr/2.5

Proposed by Jelmer Vernooij
Status: Merged
Approved by: Vincent Ladeuil
Approved revision: no longer in the source branch.
Merged at revision: 6493
Proposed branch: lp:~jelmer/bzr/2.5-config-help-topics
Merge into: lp:bzr/2.5
Diff against target: 41 lines (+10/-0)
3 files modified
bzrlib/config.py (+3/-0)
bzrlib/tests/test_config.py (+4/-0)
doc/en/release-notes/bzr-2.5.txt (+3/-0)
To merge this branch: bzr merge lp:~jelmer/bzr/2.5-config-help-topics
Reviewer Review Type Date Requested Status
Vincent Ladeuil Approve
Review via email: mp+99372@code.launchpad.net

Commit message

Implement get_help_topic for ConfigOption.

Description of the change

Cherry-pick the fix for configuration help topics from bzr.

This was originally meant to go into 2.5, but merged into bzr.dev instead.

To post a comment you must log in.
Revision history for this message
Vincent Ladeuil (vila) wrote :

IMHO, unless you really want feedback (expect issues or knows someone will object and you want a discussion), there is no need to ask for a review for such proposals.

review: Approve
Revision history for this message
Jelmer Vernooij (jelmer) wrote :

sent to pqm by email

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

sent to pqm by email

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

sent to pqm by email

Revision history for this message
Martin Packman (gz) wrote :

sent to pqm by email

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

sent to pqm by email

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'bzrlib/config.py'
--- bzrlib/config.py 2012-02-15 22:43:50 +0000
+++ bzrlib/config.py 2012-03-26 17:07:19 +0000
@@ -2442,6 +2442,9 @@
2442 value = self.default2442 value = self.default
2443 return value2443 return value
24442444
2445 def get_help_topic(self):
2446 return self.name
2447
2445 def get_help_text(self, additional_see_also=None, plain=True):2448 def get_help_text(self, additional_see_also=None, plain=True):
2446 result = self.help2449 result = self.help
2447 from bzrlib import help_topics2450 from bzrlib import help_topics
24482451
=== modified file 'bzrlib/tests/test_config.py'
--- bzrlib/tests/test_config.py 2012-02-15 22:43:50 +0000
+++ bzrlib/tests/test_config.py 2012-03-26 17:07:19 +0000
@@ -2369,6 +2369,10 @@
2369 opt = config.Option('foo', default=bar_not_unicode)2369 opt = config.Option('foo', default=bar_not_unicode)
2370 self.assertRaises(AssertionError, opt.get_default)2370 self.assertRaises(AssertionError, opt.get_default)
23712371
2372 def test_get_help_topic(self):
2373 opt = config.Option('foo')
2374 self.assertEquals('foo', opt.get_help_topic())
2375
23722376
2373class TestOptionConverterMixin(object):2377class TestOptionConverterMixin(object):
23742378
23752379
=== modified file 'doc/en/release-notes/bzr-2.5.txt'
--- doc/en/release-notes/bzr-2.5.txt 2012-03-15 16:06:40 +0000
+++ doc/en/release-notes/bzr-2.5.txt 2012-03-26 17:07:19 +0000
@@ -39,6 +39,9 @@
39* Fixed merge tool availability checking and invocation to search the39* Fixed merge tool availability checking and invocation to search the
40 Windows App Path registry in addition to the PATH. (Gordon Tyler, #939605)40 Windows App Path registry in addition to the PATH. (Gordon Tyler, #939605)
4141
42* Make sure configuration options can provide their own help topic.
43 (Jelmer Vernooij, #941672)
44
42Documentation45Documentation
43*************46*************
4447

Subscribers

People subscribed via source and target branches