Rev 5749: Merge config-section into config-store in file:///home/vila/src/bzr/experimental/config/

Vincent Ladeuil v.ladeuil+lp at free.fr
Fri Apr 1 14:41:17 UTC 2011


At file:///home/vila/src/bzr/experimental/config/

------------------------------------------------------------
revno: 5749 [merge]
revision-id: v.ladeuil+lp at free.fr-20110401144117-fnikf1os66212c5a
parent: v.ladeuil+lp at free.fr-20110401131901-c8e8itu2z6wjode0
parent: v.ladeuil+lp at free.fr-20110401143717-a3wj1v2y4hyjnh06
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: config-store
timestamp: Fri 2011-04-01 16:41:17 +0200
message:
  Merge config-section into config-store
modified:
  bzrlib/config.py               config.py-20051011043216-070c74f4e9e338e8
  bzrlib/tests/test_config.py    testconfig.py-20051011041908-742d0c15d8d8c8eb
-------------- next part --------------
=== modified file 'bzrlib/config.py'
--- a/bzrlib/config.py	2011-04-01 13:19:01 +0000
+++ b/bzrlib/config.py	2011-04-01 14:37:17 +0000
@@ -1988,6 +1988,7 @@
         self._transport.put_file(self._filename, out_file)
 
 
+# FIXME: This is not lazy yet -- vila 2011-04-01
 class ReadOnlySection(object):
     """A section defines a dict of options.
 
@@ -2009,6 +2010,7 @@
 
 
 class MutableSection(ReadOnlySection):
+    """A section allowing changes and keeping track of the original values."""
 
     def __init__(self, section_id, options):
         super(MutableSection, self).__init__(section_id, options)

=== modified file 'bzrlib/tests/test_config.py'
--- a/bzrlib/tests/test_config.py	2011-04-01 12:42:11 +0000
+++ b/bzrlib/tests/test_config.py	2011-04-01 14:37:17 +0000
@@ -1820,7 +1820,7 @@
 class TestConfigReadOnlySection(tests.TestCase):
 
     # FIXME: Parametrize so that all sections produced by Stores run these
-    # tests.
+    # tests -- vila 2011-04-01
 
     def test_get_a_value(self):
         a_dict = dict(foo='bar')
@@ -1842,7 +1842,7 @@
 class TestConfigMutableSection(tests.TestCase):
 
     # FIXME: Parametrize so that all sections (includind os.envrion and the
-    # ones produced by Stores) run these tests.
+    # ones produced by Stores) run these tests -- vila 2011-04-01
 
     def test_set(self):
         a_dict = dict(foo='bar')



More information about the bazaar-commits mailing list