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

Remove duplicate code.

Show diffs side-by-side

added added

removed removed

Lines of Context:
400
400
        result = branch.BranchPushResult()
401
401
        result.source_branch = self.source
402
402
        result.target_branch = self.target
 
403
        graph = self.target.repository.get_graph(self.source.repository)
403
404
        result.old_revno, result.old_revid = self.target.last_revision_info()
404
 
        graph = self.target.repository.get_graph(self.source.repository)
405
 
        result.old_revno, result.old_revid = \
406
 
            self.target.last_revision_info()
407
405
        self.update_revisions(stop_revision, overwrite=overwrite, 
408
406
            graph=graph)
409
407
        result.new_git_head = self._head
430
428
        refs, stop_revision = self.update_refs(stop_revision)
431
429
        self.target.generate_revision_history(stop_revision, result.old_revid)
432
430
        self.update_tags(refs)
433
 
        result.new_revid = target.last_revision()
 
431
        result.new_revid = self.target.last_revision()
434
432
        return result
435
433
 
436
434
    def update_tags(self, refs):