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

Fix some places where we were way too much memory for repositories with a large number of entries in the inventory and a large number of revisions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
 
49
49
    def record_entry_contents(self, ie, parent_invs, path, tree,
50
50
        content_summary):
51
 
        raise NotImplementedError(self.record_entry_contents)        
 
51
        raise NotImplementedError(self.record_entry_contents)
52
52
 
53
53
    def record_delete(self, path, file_id):
54
54
        self._blobs[path] = None
69
69
                blob = Blob()
70
70
                blob.data = workingtree.get_file_text(file_id, path)
71
71
                return blob.id
72
 
        for (file_id, path, changed_content, versioned, parent, name, kind, 
 
72
        for (file_id, path, changed_content, versioned, parent, name, kind,
73
73
             executable) in iter_changes:
74
74
            if kind[1] in ("directory",):
75
75
                if kind[0] in ("file", "symlink"):
117
117
    def commit(self, message):
118
118
        c = Commit()
119
119
        c.parents = [self.repository.lookup_bzr_revision_id(revid)[0] for revid in self.parents]
120
 
        c.tree = commit_tree(self.store, 
 
120
        c.tree = commit_tree(self.store,
121
121
                [(path, sha, mode) for (path, (mode, sha)) in self._blobs.iteritems()])
122
122
        c.committer = self._committer
123
123
        c.author = self._revprops.get('author', self._committer)