~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/trace.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:
235
235
            bzr_log_file.write("this is a debug log for diagnosing/reporting problems in bzr\n")
236
236
            bzr_log_file.write("you can delete or truncate this file, or include sections in\n")
237
237
            bzr_log_file.write("bug reports to https://bugs.launchpad.net/bzr/+filebug\n\n")
 
238
        osutils.copy_ownership(os.path.dirname(_bzr_log_filename), _bzr_log_filename)
238
239
        return bzr_log_file
239
240
    except IOError, e:
240
241
        # If we are failing to open the log, then most likely logging has not