233
219
def do_tip_change_with_locked_branch(self, branch, new_last_revision_id):
234
220
if new_last_revision_id == 'null:':
237
223
if not branch.repository.has_revision(new_last_revision_id):
238
224
return FailedSmartServerResponse(
239
225
('NoSuchRevision', new_last_revision_id))
241
227
new_last_revision_id, None, None))
242
228
return SuccessfulSmartServerResponse(('ok',))