~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repository.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-09-26 21:59:10 UTC
  • mfrom: (2041.1.5 commit-perf)
  • Revision ID: pqm@pqm.ubuntu.com-20060926215910-c87762786b24e444
(jam) fix commit performance regression

Show diffs side-by-side

added added

removed removed

Lines of Context:
2311
2311
            self.new_inventory, self._config)
2312
2312
        return self._new_revision_id
2313
2313
 
 
2314
    def revision_tree(self):
 
2315
        """Return the tree that was just committed.
 
2316
 
 
2317
        After calling commit() this can be called to get a RevisionTree
 
2318
        representing the newly committed tree. This is preferred to
 
2319
        calling Repository.revision_tree() because that may require
 
2320
        deserializing the inventory, while we already have a copy in
 
2321
        memory.
 
2322
        """
 
2323
        return RevisionTree(self.repository, self.new_inventory,
 
2324
                            self._new_revision_id)
 
2325
 
2314
2326
    def finish_inventory(self):
2315
2327
        """Tell the builder that the inventory is finished."""
2316
2328
        if self.new_inventory.root is None: