Rev 5460: Remove cruft. in file:///home/vila/src/bzr/experimental/config/
Vincent Ladeuil
v.ladeuil+lp at free.fr
Mon Oct 4 20:54:17 BST 2010
At file:///home/vila/src/bzr/experimental/config/
------------------------------------------------------------
revno: 5460
revision-id: v.ladeuil+lp at free.fr-20101004195417-93wr0baro6th1ni7
parent: v.ladeuil+lp at free.fr-20101004173715-5hdx76tuiv3rdl3i
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: config-modify
timestamp: Mon 2010-10-04 21:54:17 +0200
message:
Remove cruft.
-------------- next part --------------
=== modified file 'bzrlib/config.py'
--- a/bzrlib/config.py 2010-10-04 17:37:15 +0000
+++ b/bzrlib/config.py 2010-10-04 19:54:17 +0000
@@ -1869,33 +1869,3 @@
raise errors.NoSuchConfig(force)
if not removed:
raise errors.NoSuchConfigOption(name)
-
- def x_remove_config_option(self, name, directory, force):
- removed = False
- for conf in self._get_configs(directory, force):
- trace.mutter('conf: %r' % (conf,))
- # We use the first config to remove the option
- conf.remove_user_option(name)
- break
- else:
- raise errors.NoSuchConfig(force)
- if not removed:
- raise errors.NoSuchConfigOption(name)
-
- def xx_remove_config_option(self, name, directory, force):
- removed = False
- for conf in self._get_configs(directory, force):
- trace.mutter('conf: %r' % (conf,))
- for (section_name, section, conf_id) in conf._get_sections():
- trace.mutter('section: %s, %r' % (section_name, section))
- if name in section:
- # We use the first section in the first config where the
- # option is defined to remove it
- conf.remove_user_option(name, section_name)
- removed = True
- break
- break
- else:
- raise errors.NoSuchConfig(force)
- if not removed:
- raise errors.NoSuchConfigOption(name)
More information about the bazaar-commits
mailing list