95
95
revno, last_revision = branch.last_revision_info()
96
96
if last_revision == NULL_REVISION:
102
101
class SmartServerBranchRequestSetLastRevision(SmartServerLockedBranchRequest):
104
103
def do_with_locked_branch(self, branch, new_last_revision_id):
106
104
if new_last_revision_id == '':
107
105
branch.set_revision_history([])
110
108
return SmartServerResponse(
111
109
('NoSuchRevision', new_last_revision_id))
113
111
return SmartServerResponse(('ok',))