/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

Change all callers of set_last_revision to use set_parent_trees.

Show diffs side-by-side

added added

removed removed

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