~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/commit.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-08-30 04:38:44 UTC
  • mfrom: (1908.6.14 use set_parent_trees.)
  • Revision ID: pqm@pqm.ubuntu.com-20060830043844-d570350402a5ad15
Use the new WorkingTree parent-management apis throughout the codebase.

Show diffs side-by-side

added added

removed removed

Lines of Context:
319
319
            # and now do the commit locally.
320
320
            self.branch.append_revision(self.rev_id)
321
321
 
322
 
            self.work_tree.set_pending_merges([])
323
 
            self.work_tree.set_last_revision(self.rev_id)
 
322
            # if the builder gave us the revisiontree it created back, we
 
323
            # could use it straight away here.
 
324
            # TODO: implement this.
 
325
            self.work_tree.set_parent_trees([(self.rev_id,
 
326
                self.branch.repository.revision_tree(self.rev_id))])
324
327
            # now the work tree is up to date with the branch
325
328
            
326
329
            self.reporter.completed(self.branch.revno(), self.rev_id)