126
122
raise AssertionError("Unknown blob kind, perms=%r." % (mode,))
129
def import_git_objects(repo, mapping, num_objects, object_iter, pb=None):
125
def import_git_objects(repo, mapping, object_iter, pb=None):
130
126
"""Import a set of git objects into a bzr repository.
132
128
:param repo: Bazaar repository
133
129
:param mapping: Mapping to use
135
130
:param object_iter: Iterator over Git objects.
137
132
# TODO: a more (memory-)efficient implementation of this