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

  • Committer: John Arbash Meinel
  • Date: 2006-09-26 00:26:12 UTC
  • mto: This revision was merged to the branch mainline in revision 2044.
  • Revision ID: john@arbash-meinel.com-20060926002612-31b451c3f8a41992
Update WorkingTree.set_parent_trees() to directly cache inv.
Rather than go through set_parent_ids() which calls set_last_revision(),
which has to read the inventory back out of the repository.

Show diffs side-by-side

added added

removed removed

Lines of Context:
332
332
            # and now do the commit locally.
333
333
            self.branch.append_revision(self.rev_id)
334
334
 
335
 
            # if the builder gave us the revisiontree it created back, we
336
 
            # could use it straight away here.
337
 
            # TODO: implement this.
338
 
            self.work_tree.set_parent_trees([(self.rev_id,
339
 
                self.branch.repository.revision_tree(self.rev_id))])
 
335
            rev_tree = self.builder.get_tree()
 
336
            self.work_tree.set_parent_trees([(self.rev_id, rev_tree)])
340
337
            # now the work tree is up to date with the branch
341
338
            
342
339
            self.reporter.completed(self.branch.revno(), self.rev_id)