Rev 5758: Fix typos mentioned in reviews. in file:///home/vila/src/bzr/experimental/config/
Vincent Ladeuil
v.ladeuil+lp at free.fr
Mon May 2 08:15:59 UTC 2011
At file:///home/vila/src/bzr/experimental/config/
------------------------------------------------------------
revno: 5758
revision-id: v.ladeuil+lp at free.fr-20110502081559-nvitkeoe611i929q
parent: v.ladeuil+lp at free.fr-20110502080445-i70igkalzamfkzay
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: config-section
timestamp: Mon 2011-05-02 10:15:59 +0200
message:
Fix typos mentioned in reviews.
-------------- next part --------------
=== modified file 'bzrlib/config.py'
--- a/bzrlib/config.py 2011-04-09 20:09:08 +0000
+++ b/bzrlib/config.py 2011-05-02 08:15:59 +0000
@@ -2098,7 +2098,8 @@
"""A section defines a dict of options.
This is merely a read-only dict which can add some knowledge about the
- options.
+ options. It is *not* a python dict object though and doesn't try to mimic
+ its API.
"""
def __init__(self, section_id, options):
=== modified file 'bzrlib/tests/test_config.py'
--- a/bzrlib/tests/test_config.py 2011-05-02 08:04:45 +0000
+++ b/bzrlib/tests/test_config.py 2011-05-02 08:15:59 +0000
@@ -1824,7 +1824,7 @@
section = config.ReadOnlySection('myID', a_dict)
self.assertEquals('bar', section.get('foo'))
- def test_get_unkown_option(self):
+ def test_get_unknown_option(self):
a_dict = dict()
section = config.ReadOnlySection('myID', a_dict)
self.assertEquals('out of thin air',
@@ -1838,7 +1838,7 @@
class TestConfigMutableSection(tests.TestCase):
- # FIXME: Parametrize so that all sections (includind os.envrion and the
+ # FIXME: Parametrize so that all sections (including os.environ and the
# ones produced by Stores) run these tests -- vila 2011-04-01
def test_set(self):
=== modified file 'doc/developers/configuration.txt'
--- a/doc/developers/configuration.txt 2011-04-08 14:59:29 +0000
+++ b/doc/developers/configuration.txt 2011-05-02 08:15:59 +0000
@@ -18,6 +18,6 @@
- you can get, set and remove an option,
- the value is a unicode string.
-MutableSection are needed to set or remove an option, ReadOnlySection should
+MutableSection is needed to set or remove an option, ReadOnlySection should
be used otherwise.
=== modified file 'doc/en/user-guide/configuring_bazaar.txt'
--- a/doc/en/user-guide/configuring_bazaar.txt 2011-04-08 14:59:29 +0000
+++ b/doc/en/user-guide/configuring_bazaar.txt 2011-05-02 08:15:59 +0000
@@ -41,19 +41,19 @@
-------------------------
As shown in the example above, there are various ways to
-configure Bazaar, they all share some common properties though,
-an option has:
+configure Bazaar, they all share some common properties though.
+An option has:
- a name which is generally a valid python identifier,
-- a value which is a string. In some cases, Bazzar will be able
+- a value which is a string. In some cases, Bazaar will be able
to recognize special values like 'True', 'False' to infer a
boolean type, but basically, as a user, you will always specify
a value as a string.
-Options are grouped in various contexts so their name uniquely
-identify them in this context. When needed, options can be made
-persistent by recording them in a configuration file.
+Options are grouped in various contexts so the option name
+uniquely identifies it in this context. When needed, options can
+be made persistent by recording them in a configuration file.
Configuration files
More information about the bazaar-commits
mailing list