~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/config.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-08-02 23:49:34 UTC
  • mfrom: (5362.1.1 merge-2.2-into-trunk)
  • Revision ID: pqm@pqm.ubuntu.com-20100802234934-d963xmqwx5gzevr0
(Andrew Bennetts) Merge 2.2 branch back into trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
479
479
        return self.get_user_option('nickname')
480
480
 
481
481
    def _write_config_file(self):
482
 
        atomic_file = atomicfile.AtomicFile(self._get_filename())
 
482
        filename = self._get_filename()
 
483
        atomic_file = atomicfile.AtomicFile(filename)
483
484
        self._get_parser().write(atomic_file)
484
485
        atomic_file.commit()
485
486
        atomic_file.close()
 
487
        osutils.copy_ownership_from_path(filename)
486
488
 
487
489
 
488
490
class GlobalConfig(IniBasedConfig):