242
219
def do_tip_change_with_locked_branch(self, branch, new_last_revision_id):
243
220
if new_last_revision_id == 'null:':
246
223
if not branch.repository.has_revision(new_last_revision_id):
247
224
return FailedSmartServerResponse(
248
225
('NoSuchRevision', new_last_revision_id))
250
227
new_last_revision_id, None, None))
251
228
return SuccessfulSmartServerResponse(('ok',))