/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/config.py

default .bazaar, .bzr.log and .bazaar/bazaar.conf retain
the ownershup of the containing directory.

Show diffs side-by-side

added added

removed removed

Lines of Context:
473
473
        self._write_config_file()
474
474
 
475
475
    def _write_config_file(self):
476
 
        f = open(self._get_filename(), 'wb')
 
476
        path = self._get_filename()
 
477
        f = open(path, 'wb')
477
478
        self._get_parser().write(f)
478
479
        f.close()
 
480
        osutils.copy_ownership(os.path.dirname(path), path)
479
481
 
480
482
 
481
483
class LocationConfig(IniBasedConfig):
770
772
            os.mkdir(parent_dir)
771
773
        trace.mutter('creating config directory: %r', path)
772
774
        os.mkdir(path)
 
775
        osutils.copy_ownership(os.path.dirname(path), path)
773
776
 
774
777
 
775
778
def config_dir():