122
122
patch = klass._generate_diff(repository, revision_id,
126
126
public_branch_obj = _mod_branch.Branch.open(public_branch)
127
127
if not public_branch_obj.repository.has_revision(revision_id):
128
128
raise errors.PublicBranchOutOfDate(public_branch,