242
233
def do_tip_change_with_locked_branch(self, branch, new_last_revision_id):
243
234
if new_last_revision_id == 'null:':
246
237
if not branch.repository.has_revision(new_last_revision_id):
247
238
return FailedSmartServerResponse(
248
239
('NoSuchRevision', new_last_revision_id))
250
241
new_last_revision_id, None, None))
251
242
return SuccessfulSmartServerResponse(('ok',))