153
153
if revision_id is None and revision is None:
154
154
raise BzrCommandError('You must supply either --revision or a revision_id')
155
155
b = WorkingTree.open_containing(u'.')[0].branch
156
158
if revision_id is not None:
158
160
elif revision is not None:
161
163
raise BzrCommandError('You cannot specify a NULL revision.')
162
164
revno, rev_id = rev.in_history(b)
166
168
class cmd_revno(Command):