/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 breezy/revisiontree.py

  • Committer: Jelmer Vernooij
  • Date: 2018-10-29 11:27:33 UTC
  • mto: This revision was merged to the branch mainline in revision 7170.
  • Revision ID: jelmer@jelmer.uk-20181029112733-bjvm24z12svwl53m
Get rid of file_ids in most of Tree.

Show diffs side-by-side

added added

removed removed

Lines of Context:
62
62
        """Return the revision id associated with this tree."""
63
63
        return self._revision_id
64
64
 
65
 
    def get_file_revision(self, path, file_id=None):
 
65
    def get_file_revision(self, path):
66
66
        """Return the revision id in which a file was last changed."""
67
67
        raise NotImplementedError(self.get_file_revision)
68
68
 
69
 
    def get_file_text(self, path, file_id=None):
 
69
    def get_file_text(self, path):
70
70
        for (identifier, content) in self.iter_files_bytes([(path, None)]):
71
71
            ret = b"".join(content)
72
72
        return ret
73
73
 
74
 
    def get_file(self, path, file_id=None):
75
 
        return BytesIO(self.get_file_text(path, file_id))
 
74
    def get_file(self, path):
 
75
        return BytesIO(self.get_file_text(path))
76
76
 
77
77
    def is_locked(self):
78
78
        return self._repository.is_locked()