~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/revisiontree.py

  • Committer: Aaron Bentley
  • Date: 2010-11-29 23:35:13 UTC
  • mto: (5050.58.1 2.2)
  • mto: This revision was merged to the branch mainline in revision 5555.
  • Revision ID: aaron@aaronbentley.com-20101129233513-jvkfdyrog2xfvl31
Make is_executable treat symlinks and directories the same across tree types.

Show diffs side-by-side

added added

removed removed

Lines of Context:
110
110
    def is_executable(self, file_id, path=None):
111
111
        ie = self._inventory[file_id]
112
112
        if ie.kind != "file":
113
 
            return None
 
113
            return False
114
114
        return ie.executable
115
115
 
116
116
    def has_filename(self, filename):