876
876
revno, last_rev_id = branch.last_revision_info()
877
877
if last_rev_id == _mod_revision.NULL_REVISION:
878
878
if merge_parents is not None:
882
883
parent_ids = [last_rev_id]
883
884
if merge_parents is not None:
884
885
parent_ids.extend(merge_parents)
885
886
if self._tree.get_revision_id() != last_rev_id:
887
889
builder = branch.get_commit_builder(parent_ids)
888
890
preview = self.get_preview_tree()
889
891
list(builder.record_iter_changes(preview, last_rev_id,