/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 bzrlib/repository.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-10-05 03:26:19 UTC
  • mfrom: (2776.4.20 commit)
  • Revision ID: pqm@pqm.ubuntu.com-20071005032619-b6c99y625rawducb
(robertc) Reduce object creation volume during commit by reusing the repository graph object. (Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
115
115
            self._timezone = int(timezone)
116
116
 
117
117
        self._generate_revision_if_needed()
 
118
        self._repo_graph = repository.get_graph()
118
119
 
119
120
    def commit(self, message):
120
121
        """Make the actual commit.
292
293
        # XXX: Friction: parent_candidates should return a list not a dict
293
294
        #      so that we don't have to walk the inventories again.
294
295
        parent_candiate_entries = ie.parent_candidates(parent_invs)
295
 
        head_set = self.repository.get_graph().heads(parent_candiate_entries.keys())
 
296
        head_set = self._repo_graph.heads(parent_candiate_entries.keys())
296
297
        heads = []
297
298
        for inv in parent_invs:
298
299
            if ie.file_id in inv: