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