/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: 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:
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.revision_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)