/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: Martin Pool
  • Date: 2008-05-08 04:33:38 UTC
  • mfrom: (3414 +trunk)
  • mto: This revision was merged to the branch mainline in revision 3415.
  • Revision ID: mbp@sourcefrog.net-20080508043338-ru3vflx8z641a76k
Merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
254
254
        """
255
255
        raise NotImplementedError(self.get_file_mtime)
256
256
 
 
257
    def get_file_size(self, file_id):
 
258
        """Return the size of a file in bytes.
 
259
 
 
260
        This applies only to regular files.  If invoked on directories or
 
261
        symlinks, it will return None.
 
262
        :param file_id: The file-id of the file
 
263
        """
 
264
        raise NotImplementedError(self.get_file_size)
 
265
 
257
266
    def get_file_by_path(self, path):
258
267
        return self.get_file(self._inventory.path2id(path), path)
259
268
 
893
902
            # the parent's path is necessarily known at this point.
894
903
            yield(file_id, (path, to_path), changed_content, versioned, parent,
895
904
                  name, kind, executable)
896
 
 
897
 
 
898
 
# This was deprecated before 0.12, but did not have an official warning
899
 
@symbol_versioning.deprecated_function(symbol_versioning.zero_twelve)
900
 
def RevisionTree(*args, **kwargs):
901
 
    """RevisionTree has moved to bzrlib.revisiontree.RevisionTree()
902
 
 
903
 
    Accessing it as bzrlib.tree.RevisionTree has been deprecated as of
904
 
    bzr 0.12.
905
 
    """
906
 
    from bzrlib.revisiontree import RevisionTree as _RevisionTree
907
 
    return _RevisionTree(*args, **kwargs)
908
 
 
909