/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

Cope with imports.

Show diffs side-by-side

added added

removed removed

Lines of Context:
217
217
        commit = Commit()
218
218
        commit.tree = tree_sha
219
219
        for p in rev.parent_ids:
220
 
            git_p = parent_lookup(p)
 
220
            try:
 
221
                git_p = parent_lookup(p)
 
222
            except KeyError:
 
223
                git_p = None
221
224
            if git_p is not None:
222
225
                assert len(git_p) == 40, "unexpected length for %r" % git_p
223
226
                commit.parents.append(git_p)