~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repofmt/weaverepo.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-05-21 10:41:34 UTC
  • mfrom: (3416.2.6 filemodes)
  • Revision ID: pqm@pqm.ubuntu.com-20080521104134-beoquporep2cpghs
(mbp) BzrDir controls file modes, not LockableFiles

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
    _serializer = xml5.serializer_v5
53
53
 
54
54
    def __init__(self, _format, a_bzrdir, _revision_store, control_store, text_store):
55
 
        # we reuse one control files instance.
56
 
        dir_mode = a_bzrdir._control_files._dir_mode
57
 
        file_mode = a_bzrdir._control_files._file_mode
 
55
        dir_mode = a_bzrdir._get_dir_mode()
 
56
        file_mode = a_bzrdir._get_file_mode()
58
57
 
59
58
        def get_store(name, compressed=True, prefixed=False):
60
59
            # FIXME: This approach of assuming stores are all entirely compressed
298
297
                                'branch-lock', lockable_files.TransportLock)
299
298
        control_files.create_lock()
300
299
        control_files.lock_write()
301
 
        control_files._transport.mkdir_multi(dirs,
302
 
                mode=control_files._dir_mode)
 
300
        a_bzrdir.transport.mkdir_multi(dirs,
 
301
            mode=a_bzrdir._get_dir_mode())
303
302
        try:
304
303
            for file, content in files:
305
304
                control_files.put(file, content)