~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tree.py

  • Committer: Martin Packman
  • Date: 2012-01-05 12:16:05 UTC
  • mto: This revision was merged to the branch mainline in revision 6432.
  • Revision ID: martin.packman@canonical.com-20120105121605-118byz8r1hol1u27
Clean up bzrlib imports in xml_serializer

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
"""Tree classes, representing directory at point in time.
18
18
"""
19
19
 
 
20
from __future__ import absolute_import
 
21
 
20
22
import os
21
23
 
22
24
from bzrlib.lazy_import import lazy_import
355
357
        """
356
358
        raise NotImplementedError(self.get_file_size)
357
359
 
358
 
    def get_file_by_path(self, path):
359
 
        raise NotImplementedError(self.get_file_by_path)
360
 
 
361
360
    def is_executable(self, file_id, path=None):
362
361
        """Check if a file is executable.
363
362
 
827
826
        return self.inventory.iter_entries_by_dir(
828
827
            specific_file_ids=specific_file_ids, yield_parents=yield_parents)
829
828
 
 
829
    @deprecated_method(deprecated_in((2, 5, 0)))
830
830
    def get_file_by_path(self, path):
831
 
        return self.get_file(self._inventory.path2id(path), path)
 
831
        return self.get_file(self.path2id(path), path)
832
832
 
833
833
 
834
834
def find_ids_across_trees(filenames, trees, require_versioned=True):