5224
5224
tree = _get_one_revision_tree('annotate', revision, branch=branch)
5225
5225
self.add_cleanup(tree.lock_read().unlock)
5226
5226
if wt is not None and revision is None:
5233
5229
# If there is a tree and we're not annotating historical
5234
5230
# versions, annotate the working tree's content.
5235
5231
annotate_file_tree(wt, relpath, self.outf, long, all,
5238
5236
annotate_file_tree(tree, relpath, self.outf, long, all,
5239
5237
show_ids=show_ids, branch=branch)