/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 mapping.py

Add extra assert to make sure we don't write invalid parents.

Show diffs side-by-side

added added

removed removed

Lines of Context:
188
188
    for p in rev.parent_ids:
189
189
        git_p = parent_lookup(p)
190
190
        if git_p is not None:
 
191
            assert len(git_p) == 40, "unexpected length for %r" % git_p
191
192
            commit._parents.append(git_p)
192
193
    commit._message = rev.message.encode("utf-8")
193
194
    commit._committer = rev.committer.encode("utf-8")