/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tree.py

  • Committer: Andrew Bennetts
  • Date: 2009-06-03 04:42:02 UTC
  • mfrom: (4399 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4401.
  • Revision ID: andrew.bennetts@canonical.com-20090603044202-bq5pwfme4fve3xbt
Merge, resolving NEWS conflict.

Show diffs side-by-side

added added

removed removed

Lines of Context:
263
263
        """
264
264
        raise NotImplementedError(self.get_file)
265
265
 
 
266
    def get_file_with_stat(self, file_id, path=None):
 
267
        """Get a file handle and stat object for file_id.
 
268
 
 
269
        The default implementation returns (self.get_file, None) for backwards
 
270
        compatibility.
 
271
 
 
272
        :param file_id: The file id to read.
 
273
        :param path: The path of the file, if it is known.
 
274
        :return: A tuple (file_handle, stat_value_or_None). If the tree has
 
275
            no stat facility, or need for a stat cache feedback during commit,
 
276
            it may return None for the second element of the tuple.
 
277
        """
 
278
        return (self.get_file(file_id, path), None)
 
279
 
266
280
    def get_file_text(self, file_id, path=None):
267
281
        """Return the byte content of a file.
268
282