/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/plugins/git/dir.py

  • Committer: Jelmer Vernooij
  • Date: 2018-05-15 19:05:51 UTC
  • mfrom: (6968 work)
  • mto: (6973.5.1 python3-c)
  • mto: This revision was merged to the branch mainline in revision 6984.
  • Revision ID: jelmer@jelmer.uk-20180515190551-epr5abd0mtxmrehr
merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
654
654
            # directories and files are read-write for this user. This is
655
655
            # mostly a workaround for filesystems which lie about being able to
656
656
            # write to a directory (cygwin & win32)
657
 
            if (st.st_mode & 07777 == 00000):
 
657
            if (st.st_mode & 0o7777 == 0o0000):
658
658
                # FTP allows stat but does not return dir/file modes
659
659
                self._dir_mode = None
660
660
                self._file_mode = None
661
661
            else:
662
 
                self._dir_mode = (st.st_mode & 07777) | 00700
 
662
                self._dir_mode = (st.st_mode & 0o7777) | 0o0700
663
663
                # Remove the sticky and execute bits for files
664
 
                self._file_mode = self._dir_mode & ~07111
 
664
                self._file_mode = self._dir_mode & ~0o7111
665
665
 
666
666
    def _get_file_mode(self):
667
667
        """Return Unix mode for newly created files, or None.