605
605
# TODO: refactor this to use an existing revision object
606
606
# so we don't need to read it in twice.
607
607
if revision_id is None or revision_id == _mod_revision.NULL_REVISION:
610
611
inv = self.get_revision_inventory(revision_id)
611
612
return RevisionTree(self, inv, revision_id)