~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/config.py

  • Committer: Patch Queue Manager
  • Date: 2012-09-17 11:14:25 UTC
  • mfrom: (6554.1.1 stack-remove-unknown)
  • Revision ID: pqm@pqm.ubuntu.com-20120917111425-4i6r0ze0v9zm33bu
(vila) Fix obscure and misleading warning when trying to delete an unknown
 config option. (Vincent Ladeuil)

Show diffs side-by-side

added added

removed removed

Lines of Context:
2944
2944
        self.options[name] = value
2945
2945
 
2946
2946
    def remove(self, name):
2947
 
        if name not in self.orig:
 
2947
        if name not in self.orig and name in self.options:
2948
2948
            self.orig[name] = self.get(name, None)
2949
2949
        del self.options[name]
2950
2950