/loggerhead/unstable

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

« back to all changes in this revision

Viewing changes to loggerhead/history.py

  • Committer: Jelmer Vernooij
  • Date: 2018-11-27 20:43:04 UTC
  • mfrom: (182.150.65)
  • Revision ID: jelmer@jelmer.uk-20181127204304-6ltobpnkau4db8x1
New upstream snapshot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
772
772
        display_path = path
773
773
        if not display_path.startswith('/'):
774
774
            path = '/' + path
775
 
        return display_path, breezy.osutils.basename(path), rev_tree.get_file_text(path, file_id)
 
775
        return (display_path, breezy.osutils.basename(path),
 
776
                rev_tree.get_file_text(path))
776
777
 
777
778
    def file_changes_for_revision_ids(self, old_revid, new_revid):
778
779
        """
789
790
        """
790
791
        repo = self._branch.repository
791
792
        if (breezy.revision.is_null(old_revid) or
792
 
            breezy.revision.is_null(new_revid) or
793
 
            old_revid == new_revid):
 
793
                breezy.revision.is_null(new_revid) or
 
794
                old_revid == new_revid):
794
795
            old_tree, new_tree = map(
795
796
                repo.revision_tree, [old_revid, new_revid])
796
797
        else: