~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/config.py

(gz) Fix ensure_config_dir_exists logic when parent dir exists (Martin [gz])

Show diffs side-by-side

added added

removed removed

Lines of Context:
962
962
            parent_dir = os.path.dirname(path)
963
963
            if not os.path.isdir(parent_dir):
964
964
                trace.mutter('creating config parent directory: %r', parent_dir)
965
 
            os.mkdir(parent_dir)
 
965
                os.mkdir(parent_dir)
966
966
        trace.mutter('creating config directory: %r', path)
967
967
        os.mkdir(path)
968
968
        osutils.copy_ownership_from_path(path)