~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/workingtree_4.py

  • Committer: Robert Collins
  • Date: 2007-10-22 01:23:51 UTC
  • mfrom: (2921.3.1 graph)
  • mto: This revision was merged to the branch mainline in revision 2933.
  • Revision ID: robertc@robertcollins.net-20071022012351-16lm27an2lbzk038
Merge graph history-access bugfix.

Show diffs side-by-side

added added

removed removed

Lines of Context:
467
467
        path_utf8 = osutils.pathjoin(entry[0][0], entry[0][1])
468
468
        return path_utf8.decode('utf8')
469
469
 
 
470
    def _is_executable_from_path_and_stat_from_basis(self, path, stat_result):
 
471
        entry = self._get_entry(path=path)
 
472
        if entry == (None, None):
 
473
            return False # Missing entries are not executable
 
474
        return entry[1][0][3] # Executable?
 
475
 
470
476
    if not osutils.supports_executable():
471
477
        def is_executable(self, file_id, path=None):
472
478
            """Test if a file is executable or not.
477
483
            if entry == (None, None):
478
484
                return False
479
485
            return entry[1][0][3]
 
486
 
 
487
        _is_executable_from_path_and_stat = \
 
488
            _is_executable_from_path_and_stat_from_basis
480
489
    else:
481
490
        def is_executable(self, file_id, path=None):
482
491
            """Test if a file is executable or not.