~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/workingtree_4.py

  • Committer: Vincent Ladeuil
  • Date: 2007-10-23 07:15:13 UTC
  • mfrom: (2926 +trunk)
  • mto: (2961.1.1 trunk)
  • mto: This revision was merged to the branch mainline in revision 2962.
  • Revision ID: v.ladeuil+lp@free.fr-20071023071513-elryt6g2at34d2ur
merge bzr.dev

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.