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

Cache trees rather than inventories.

Show diffs side-by-side

added added

removed removed

Lines of Context:
68
68
        """Import the gist of a revision into this Git repository.
69
69
 
70
70
        """
71
 
        inv = self._object_store.parent_invs_cache.get_inventory(revid)
 
71
        tree = self._object_store.tree_cache.revision_tree(revid)
72
72
        rev = self.source.get_revision(revid)
73
73
        commit = None
74
 
        for path, obj, ie in self._object_store._revision_to_objects(rev, inv):
 
74
        for path, obj, ie in self._object_store._revision_to_objects(rev, tree):
75
75
            if obj.type_name == "commit":
76
76
                commit = obj
77
77
            self._pending.append((obj, path))