99
99
return _show_id_annotations(annotations, to_file, full)
101
# Create a virtual revision to represent the current tree state.
102
# Should get some more pending commit attributes, like pending tags,
104
current_rev = Revision(CURRENT_REVISION)
105
current_rev.parent_ids = tree.get_parent_ids()
106
current_rev.committer = branch.get_config().username()
107
current_rev.message = "?"
108
current_rev.timestamp = round(time.time(), 3)
109
current_rev.timezone = osutils.local_time_offset()
101
if not getattr(tree, "get_revision_id", False):
102
# Create a virtual revision to represent the current tree state.
103
# Should get some more pending commit attributes, like pending tags,
105
current_rev = Revision(CURRENT_REVISION)
106
current_rev.parent_ids = tree.get_parent_ids()
107
current_rev.committer = branch.get_config().username()
108
current_rev.message = "?"
109
current_rev.timestamp = round(time.time(), 3)
110
current_rev.timezone = osutils.local_time_offset()
110
113
annotation = list(_expand_annotations(annotations, branch,
112
115
_print_annotations(annotation, verbose, to_file, full)