~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-04-24 16:54:50 UTC
  • mfrom: (5183.1.2 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20100424165450-2jfbk8ta0hhznynx
(vila) Only chown() the .bzr.log when creating it (Parth Malwankar)

Show diffs side-by-side

added added

removed removed

Lines of Context:
519
519
 
520
520
    def _write_config_file(self):
521
521
        path = self._get_filename()
522
 
        f = osutils.open_with_ownership(path, 'wb')
 
522
        f = open(path, 'wb')
 
523
        osutils.copy_ownership_from_path(path)
523
524
        self._get_parser().write(f)
524
525
        f.close()
525
526
 
818
819
                trace.mutter('creating config parent directory: %r', parent_dir)
819
820
            os.mkdir(parent_dir)
820
821
        trace.mutter('creating config directory: %r', path)
821
 
        osutils.mkdir_with_ownership(path)
 
822
        os.mkdir(path)
 
823
        osutils.copy_ownership_from_path(path)
822
824
 
823
825
 
824
826
def config_dir():