~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transform.py

(mbp) squelch chmod errors,
 to cope with non-unixy unix filesystems (Martin Pool)

Show diffs side-by-side

added added

removed removed

Lines of Context:
783
783
                    to_mode |= 0010 & ~umask
784
784
            else:
785
785
                to_mode = current_mode & ~0111
786
 
            os.chmod(abspath, to_mode)
 
786
            osutils.chmod_if_possible(abspath, to_mode)
787
787
 
788
788
    def _new_entry(self, name, parent_id, file_id):
789
789
        """Helper function to create a new filesystem entry."""
1642
1642
            else:
1643
1643
                raise
1644
1644
        if typefunc(mode):
1645
 
            os.chmod(self._limbo_name(trans_id), mode)
 
1645
            osutils.chmod_if_possible(self._limbo_name(trans_id), mode)
1646
1646
 
1647
1647
    def iter_tree_children(self, parent_id):
1648
1648
        """Iterate through the entry's tree children, if any"""