84
88
raise AssertionError("Commit object can't be None")
85
89
rev = ForeignRevision(commit.id, self, self.revision_id_foreign_to_bzr(commit.id))
86
90
rev.parent_ids = tuple([self.revision_id_foreign_to_bzr(p) for p in commit.parents])
88
92
rev.committer = str(commit.committer).decode("utf-8", "replace")
89
93
if commit.committer != commit.author:
90
94
rev.properties['author'] = str(commit.author).decode("utf-8", "replace")