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

Use start_write_group() / commit_write_group() mechanism when creating git SHA maps.

Show diffs side-by-side

added added

removed removed

Lines of Context:
348
348
    :param mapping: Mapping to use
349
349
    :param object_iter: Iterator over Git objects.
350
350
    """
 
351
    target_git_object_retriever._idmap.start_write_group() # FIXME: try/finally
351
352
    def lookup_object(sha):
352
353
        try:
353
354
            return object_iter[sha]
406
407
            hint = repo.commit_write_group()
407
408
            if hint is not None:
408
409
                pack_hints.extend(hint)
409
 
    target_git_object_retriever._idmap.commit()
 
410
    target_git_object_retriever._idmap.commit_write_group()
410
411
    return pack_hints
411
412
 
412
413