Rev 6502: Clarify the dict usage to share dirty sections. in file:///home/vila/src/bzr/bugs/948339-config-caching/

Vincent Ladeuil v.ladeuil+lp at free.fr
Wed Mar 28 15:47:14 UTC 2012


At file:///home/vila/src/bzr/bugs/948339-config-caching/

------------------------------------------------------------
revno: 6502
revision-id: v.ladeuil+lp at free.fr-20120328154713-yjgbccufbkol5w4s
parent: v.ladeuil+lp at free.fr-20120313164220-atkou2zprhlspmwg
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: 948339-config-caching
timestamp: Wed 2012-03-28 17:47:13 +0200
message:
  Clarify the dict usage to share dirty sections.
-------------- next part --------------
=== modified file 'bzrlib/config.py'
--- a/bzrlib/config.py	2012-03-13 16:28:30 +0000
+++ b/bzrlib/config.py	2012-03-28 15:47:13 +0000
@@ -2991,7 +2991,8 @@
     mutable_section_class = MutableSection
 
     def __init__(self):
-        # Which sections need to be saved (by section id)
+        # Which sections need to be saved (by section id). We use a dict here
+        # so the dirty sections can be shared by multiple callers.
         self.dirty_sections = {}
 
     def is_loaded(self):



More information about the bazaar-commits mailing list