~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/config.py

  • Committer: Parth Malwankar
  • Date: 2010-07-21 03:14:56 UTC
  • mto: (5050.3.14 2.2)
  • mto: This revision was merged to the branch mainline in revision 5365.
  • Revision ID: parth.malwankar@gmail.com-20100721031456-tpte0wnmyyvzm3mn
copy ownership for config file unconditionally

Show diffs side-by-side

added added

removed removed

Lines of Context:
480
480
 
481
481
    def _write_config_file(self):
482
482
        filename = self._get_filename()
483
 
        file_existed = os.path.isfile(filename)
484
483
        atomic_file = atomicfile.AtomicFile(filename)
485
484
        self._get_parser().write(atomic_file)
486
485
        atomic_file.commit()
487
486
        atomic_file.close()
488
 
        if not file_existed:
489
 
            osutils.copy_ownership_from_path(filename)
 
487
        osutils.copy_ownership_from_path(filename)
490
488
 
491
489
 
492
490
class GlobalConfig(IniBasedConfig):