300
299
def do_tip_change_with_locked_branch(self, branch, new_last_revision_id):
301
300
if new_last_revision_id == 'null:':
304
303
if not branch.repository.has_revision(new_last_revision_id):
305
304
return FailedSmartServerResponse(
306
305
('NoSuchRevision', new_last_revision_id))
308
308
return SuccessfulSmartServerResponse(('ok',))