/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/git/workingtree.py

  • Committer: Jelmer Vernooij
  • Date: 2018-09-21 01:05:50 UTC
  • mto: (7122.6.2 win-symlink-warning)
  • mto: This revision was merged to the branch mainline in revision 7318.
  • Revision ID: jelmer@jelmer.uk-20180921010550-ppcb017aue0fjy9y
Check for fs type to determine whether executable bit is supported.

Show diffs side-by-side

added added

removed removed

Lines of Context:
729
729
 
730
730
    def is_executable(self, path, file_id=None):
731
731
        with self.lock_read():
732
 
            if getattr(self, "_supports_executable", osutils.supports_executable)():
 
732
            if self._supports_executable():
733
733
                mode = self._lstat(path).st_mode
734
734
            else:
735
735
                (index, subpath) = self._lookup_index(path.encode('utf-8'))
740
740
            return bool(stat.S_ISREG(mode) and stat.S_IEXEC & mode)
741
741
 
742
742
    def _is_executable_from_path_and_stat(self, path, stat_result):
743
 
        if getattr(self, "_supports_executable", osutils.supports_executable)():
 
743
        if self._supports_executable():
744
744
            return self._is_executable_from_path_and_stat_from_stat(path, stat_result)
745
745
        else:
746
746
            return self._is_executable_from_path_and_stat_from_basis(path, stat_result)