~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tree.py

Remove get_kind_and_executable_by_path; go back to using plain path_content_summary

Show diffs side-by-side

added added

removed removed

Lines of Context:
215
215
        """
216
216
        return self.kind(file_id)
217
217
 
218
 
    def get_kind_and_executable_by_path(self, path):
219
 
        """Get the kind and x-bit for a path.
220
 
 
221
 
        :returns: (kind, execute)
222
 
 
223
 
        Execute may be None if it can't be determined.
224
 
        """
225
 
        # this typically can be overridden to be more efficient
226
 
        file_id = self.path2id(path)
227
 
        kind = self.kind(file_id)
228
 
        execute = self.is_executable(file_id)
229
 
        return kind, execute
230
 
 
231
218
    def path_content_summary(self, path):
232
219
        """Get a summary of the information about path.
233
220
 
237
224
        :param path: A relative path within the tree.
238
225
        :return: A tuple containing kind, size, exec, sha1-or-link.
239
226
            Kind is always present (see tree.kind()).
240
 
            size is present if kind is file, None otherwise.
 
227
            size is present if kind is file and the size of the 
 
228
                canonical form can be cheaply determined, None otherwise.
241
229
            exec is None unless kind is file and the platform supports the 'x'
242
230
                bit.
243
231
            sha1-or-link is the link target if kind is symlink, or the sha1 if