/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

Defer invshamap calls.

Show diffs side-by-side

added added

removed removed

Lines of Context:
100
100
        """
101
101
        inv = self.source.get_inventory(revid)
102
102
        rev = self.source.get_revision(revid)
 
103
        invshamap = self._object_store._idmap.get_inventory_sha_map(revid)
103
104
        unusual_modes = extract_unusual_modes(rev)
104
105
        todo = [inv.root]
105
106
        tree_sha = None
106
107
        while todo:
107
108
            ie = todo.pop()
108
 
            (sha, object) = self._object_store._get_ie_object_or_sha1(ie, inv, unusual_modes)
 
109
            (sha, object) = self._object_store._get_ie_object_or_sha1(ie, inv, invshamap, unusual_modes)
109
110
            if ie.parent_id is None:
110
111
                tree_sha = sha
111
112
            if not self.need_sha(sha):