/loggerhead/trunk

To get this branch, use:
bzr branch https://code.breezy-vcs.org/loggerhead/trunk

« back to all changes in this revision

Viewing changes to loggerhead/controllers/view_ui.py

  • Committer: Jelmer Vernooij
  • Date: 2018-11-27 20:38:38 UTC
  • Revision ID: jelmer@jelmer.uk-20181127203838-0rz87y4lcmlaush3
Fix compatibility with newer versions of breezy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
        if not isinstance(revid, bytes):
56
56
            raise TypeError(revid)
57
57
        rev_tree = self._history.revision_tree(revid)
58
 
        file_revid = rev_tree.get_file_revision(rev_tree.id2path(file_id), file_id)
 
58
        file_revid = rev_tree.get_file_revision(rev_tree.id2path(file_id))
59
59
        return self._history._branch.repository.revision_tree(file_revid)
60
60
 
61
61
    def text_lines(self, file_id, revid):
63
63
        file_name = os.path.basename(path)
64
64
 
65
65
        tree = self.tree_for(file_id, revid)
66
 
        file_text = tree.get_file_text(path, file_id)
 
66
        file_text = tree.get_file_text(path)
67
67
 
68
68
        encoding = 'utf-8'
69
69
        try: