/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

Write git pack files rather than loose objects.

Show diffs side-by-side

added added

removed removed

Lines of Context:
163
163
        old_path = None
164
164
    invdelta.append((old_path, path, file_id, ie))
165
165
    if base_hexsha != hexsha:
166
 
        store_updater.add_object(blob, ie)
 
166
        store_updater.add_object(blob, ie, path)
167
167
    return invdelta
168
168
 
169
169
 
291
291
    if base_tree is not None and type(base_tree) is Tree:
292
292
        invdelta.extend(remove_disappeared_children(base_inv, old_path, 
293
293
            base_tree, existing_children, lookup_object))
294
 
    store_updater.add_object(tree, ie)
 
294
    store_updater.add_object(tree, ie, path)
295
295
    return invdelta, child_modes
296
296
 
297
297
 
350
350
        base_tree = lookup_object(o.parents[0]).tree
351
351
        base_mode = stat.S_IFDIR
352
352
    store_updater = target_git_object_retriever._get_updater(rev)
353
 
    store_updater.add_object(o, None)
 
353
    store_updater.add_object(o, None, None)
354
354
    lookup_file_id = mapping.get_fileid_map(lookup_object, o.tree).lookup_file_id
355
355
    inv_delta, unusual_modes = import_git_tree(repo.texts,
356
356
            mapping, "", u"", (base_tree, o.tree), base_inv,