~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/commit.py

Merge the Branch.last_revision_info api change.

Show diffs side-by-side

added added

removed removed

Lines of Context:
428
428
        #       to local.
429
429
        
430
430
        # Make sure the local branch is identical to the master
431
 
        master_rh = self.master_branch.revision_history()
432
 
        local_rh = self.branch.revision_history()
433
 
        if local_rh != master_rh:
 
431
        master_info = self.master_branch.last_revision_info()
 
432
        local_info = self.branch.last_revision_info()
 
433
        if local_info != master_info:
434
434
            raise errors.BoundBranchOutOfDate(self.branch,
435
435
                    self.master_branch)
436
436