Rev 5536: Tweak comment as per poolie's suggestion. in file:///home/vila/src/bzr/experimental/config/

Vincent Ladeuil v.ladeuil+lp at free.fr
Wed Nov 17 11:45:47 GMT 2010


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

------------------------------------------------------------
revno: 5536
revision-id: v.ladeuil+lp at free.fr-20101117114546-d4c9o3eu7s5hjiuh
parent: v.ladeuil+lp at free.fr-20101112093732-uggx7h945scbr4i6
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: 671050-config-policy
timestamp: Wed 2010-11-17 12:45:46 +0100
message:
  Tweak comment as per poolie's suggestion.
-------------- next part --------------
=== modified file 'bzrlib/config.py'
--- a/bzrlib/config.py	2010-11-08 16:22:55 +0000
+++ b/bzrlib/config.py	2010-11-17 11:45:46 +0000
@@ -1864,9 +1864,11 @@
                 break
             for (oname, value, section, conf_id) in c._get_options():
                 if name == oname:
-                    # Display only the first value and exit (We need to use
-                    # get_user_option to take policies into account and we need
-                    # to make sure the option exists too :-/)
+                    # Display only the first value and exit
+                    # FIXME: We need to use get_user_option to take policies
+                    # into account and we need to make sure the option exists
+                    # too (hence the two for loops), this needs a better API --
+                    # vila 20101117
                     self.outf.write('%s\n' % c.get_user_option(name))
                     displayed = True
                     break



More information about the bazaar-commits mailing list