Rev 5326: Add some comments. in file:///home/vila/src/bzr/bugs/525571-lock-bazaar-conf-files/

Vincent Ladeuil v.ladeuil+lp at free.fr
Tue Jun 29 16:48:08 BST 2010


At file:///home/vila/src/bzr/bugs/525571-lock-bazaar-conf-files/

------------------------------------------------------------
revno: 5326
revision-id: v.ladeuil+lp at free.fr-20100629154808-lhd7xgkocj5xbl18
parent: v.ladeuil+lp at free.fr-20100629153654-lws3kmpt1f4y3i0y
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: 525571-lock-bazaar-conf-files
timestamp: Tue 2010-06-29 17:48:08 +0200
message:
  Add some comments.
-------------- next part --------------
=== modified file 'bzrlib/config.py'
--- a/bzrlib/config.py	2010-06-29 15:36:54 +0000
+++ b/bzrlib/config.py	2010-06-29 15:48:08 +0000
@@ -364,14 +364,17 @@
     def _get_parser(self, infile=None):
         if self._parser is not None:
             return self._parser
+        # Do we have a file name for the config file
         if self._get_filename is None:
             fname = None
         else:
             fname = self._get_filename()
+        # Do we have a content for the config file ?
         if infile is None:
             fname_or_content = fname
         else:
             fname_or_content = infile
+        # Build the ConfigObj
         p = None
         try:
             p = ConfigObj(fname_or_content, encoding='utf-8')
@@ -536,6 +539,8 @@
 
     @needs_write_lock
     def _write_config_file(self):
+        # For tests purposes, we separate the decorated method from the
+        # implementation one.
         self._write_config_file_atomic()
 
     def _write_config_file_atomic(self):



More information about the bazaar-commits mailing list