~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transform.py

  • Committer: Aaron Bentley
  • Date: 2008-06-26 20:34:14 UTC
  • mto: (3363.9.2 plan_merge)
  • mto: This revision was merged to the branch mainline in revision 3517.
  • Revision ID: aaron@aaronbentley.com-20080626203414-1e01i0ezx7sq5gzh
Fix is_executable

Show diffs side-by-side

added added

removed removed

Lines of Context:
1568
1568
        return self._transform._tree.get_file_sha1(file_id)
1569
1569
 
1570
1570
    def is_executable(self, file_id, path=None):
1571
 
        return self._transform._tree.is_executable(file_id, path)
 
1571
        trans_id = self._transform.trans_id_file_id(file_id)
 
1572
        try:
 
1573
            return self._transform._new_executability[trans_id]
 
1574
        except KeyError:
 
1575
            return self._transform._tree.is_executable(file_id, path)
1572
1576
 
1573
1577
    def path_content_summary(self, path):
1574
1578
        trans_id = self._path2trans_id(path)