771
771
other_branch = Branch.open(self.spec)
772
772
last_revision = other_branch.last_revision()
773
773
last_revision = revision.ensure_null(last_revision)
774
775
if last_revision == revision.NULL_REVISION:
775
776
raise errors.NoCommits(other_branch)