5269
5269
tree = _get_one_revision_tree('annotate', revision, branch=branch)
5270
5270
self.add_cleanup(tree.lock_read().unlock)
5271
5271
if wt is not None and revision is None:
5278
5274
# If there is a tree and we're not annotating historical
5279
5275
# versions, annotate the working tree's content.
5280
5276
annotate_file_tree(wt, relpath, self.outf, long, all,
5283
5281
annotate_file_tree(tree, relpath, self.outf, long, all,
5284
5282
show_ids=show_ids, branch=branch)