767
767
other_branch = Branch.open(self.spec)
768
768
last_revision = other_branch.last_revision()
769
769
last_revision = revision.ensure_null(last_revision)
770
771
if last_revision == revision.NULL_REVISION:
771
772
raise errors.NoCommits(other_branch)