~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/workingtree_4.py

  • Committer: Martin Pool
  • Date: 2009-03-24 04:49:51 UTC
  • mfrom: (3407.2.20 controlfiles)
  • mto: This revision was merged to the branch mainline in revision 4202.
  • Revision ID: mbp@sourcefrog.net-20090324044951-k5h6x6u0zz4721m5
bzrdir takes responsibility for file/directory unix modes

Show diffs side-by-side

added added

removed removed

Lines of Context:
1309
1309
        control_files.create_lock()
1310
1310
        control_files.lock_write()
1311
1311
        transport.put_bytes('format', self.get_format_string(),
1312
 
            mode=control_files._file_mode)
 
1312
            mode=a_bzrdir._get_file_mode())
1313
1313
        if from_branch is not None:
1314
1314
            branch = from_branch
1315
1315
        else:
2537
2537
        """Change the format marker."""
2538
2538
        tree._transport.put_bytes('format',
2539
2539
            self.target_format.get_format_string(),
2540
 
            mode=tree._control_files._file_mode)
 
2540
            mode=tree.bzrdir._get_file_mode())