/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-03-04 15:59:37 UTC
  • mto: This revision was merged to the branch mainline in revision 6913.
  • Revision ID: jelmer@jelmer.uk-20180304155937-pssy5js0av6hvmba
Make Tree.iter_files_bytes() take paths rather than file_ids.

Show diffs side-by-side

added added

removed removed

Lines of Context:
69
69
        raise NotImplementedError(self.get_file_revision)
70
70
 
71
71
    def get_file_text(self, path, file_id=None):
72
 
        if file_id is None:
73
 
            file_id = self.path2id(path)
74
 
        for (identifier, content) in self.iter_files_bytes([(file_id, None)]):
 
72
        for (identifier, content) in self.iter_files_bytes([(path, None)]):
75
73
            ret = "".join(content)
76
74
        return ret
77
75