~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

  • Committer: John Arbash Meinel
  • Date: 2005-12-15 22:00:36 UTC
  • mto: (1185.50.20 bzr-jam-integration)
  • mto: This revision was merged to the branch mainline in revision 1532.
  • Revision ID: john@arbash-meinel.com-20051215220036-e1f4de8dff952819
Added the ability to disable setting permissions

Show diffs side-by-side

added added

removed removed

Lines of Context:
512
512
    _lock_count = None
513
513
    _lock = None
514
514
    _inventory_weave = None
 
515
    # If set to False (by a plugin, etc) BzrBranch will not set the
 
516
    # mode on created files or directories
 
517
    _set_file_mode = True
 
518
    _set_dir_mode = True
515
519
    
516
520
    # Map some sort of prefix into a namespace
517
521
    # stuff like "revno:10", "revid:", etc.
766
770
            self._dir_mode = st.st_mode & 07777
767
771
            # Remove the sticky and execute bits for files
768
772
            self._file_mode = self._dir_mode & ~07111
 
773
        if not self._set_dir_mode:
 
774
            self._dir_mode = None
 
775
        if not self._set_file_mode:
 
776
            self._file_mode = None
769
777
 
770
778
    def _make_control(self):
771
779
        from bzrlib.inventory import Inventory