565
564
def revision_tree(self, revision_id):
566
565
"""Return Tree for a revision on this branch.
570
569
# TODO: refactor this to use an existing revision object
571
570
# so we don't need to read it in twice.
572
571
if revision_id is None or revision_id == NULL_REVISION:
575
574
inv = self.get_revision_inventory(revision_id)
576
575
return RevisionTree(self, inv, revision_id)