~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/config.py

  • Committer: Andrew Bennetts
  • Date: 2010-07-29 11:17:57 UTC
  • mfrom: (5050.3.17 2.2)
  • mto: This revision was merged to the branch mainline in revision 5365.
  • Revision ID: andrew.bennetts@canonical.com-20100729111757-018h3pcefo7z0dnq
Merge lp:bzr/2.2 into lp:bzr.

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):