/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to repository.py

Use objects that more closely match GitPython, support creating new repositories.

Show diffs side-by-side

added added

removed removed

Lines of Context:
153
153
 
154
154
        :return: a `bzrlib.revision.Revision` object.
155
155
        """
 
156
        if commit is None:
 
157
            raise AssertionError("Commit object can't be None")
156
158
        rev = ForeignRevision(commit.id, mapping, mapping.revision_id_foreign_to_bzr(commit.id))
157
159
        rev.parent_ids = tuple([mapping.revision_id_foreign_to_bzr(p.id) for p in commit.parents])
158
160
        rev.message = commit.message.decode("utf-8", "replace")