~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tree.py

  • Committer: Aaron Bentley
  • Date: 2005-10-13 17:03:20 UTC
  • mto: (1185.25.1)
  • mto: This revision was merged to the branch mainline in revision 1460.
  • Revision ID: abentley@panoramicfeedback.com-20051013170320-731d9d3efaeb81d6
Removed use of readonly path for executability test

Show diffs side-by-side

added added

removed removed

Lines of Context:
157
157
            return ie.text_sha1
158
158
 
159
159
    def is_executable(self, file_id):
 
160
        ie = self._inventory[file_id]
 
161
        if ie.kind != "file":
 
162
            return None 
160
163
        return self._inventory[file_id].executable
161
164
 
162
165
    def has_filename(self, filename):
171
174
        ie = self._inventory[file_id]
172
175
        return ie.symlink_target;
173
176
 
 
177
    def kind(self, file_id):
 
178
        return self._inventory[file_id].kind
174
179
 
175
180
class EmptyTree(Tree):
176
181
    def __init__(self):