##// END OF EJS Templates
export: use cmdutil.check_at_most_one_arg()...
Martin von Zweigbergk -
r44347:287556e7 default
parent child Browse files
Show More
@@ -2610,8 +2610,7 b' def export(ui, repo, *changesets, **opts'
2610 bookmark = opts.get(b'bookmark')
2610 bookmark = opts.get(b'bookmark')
2611 changesets += tuple(opts.get(b'rev', []))
2611 changesets += tuple(opts.get(b'rev', []))
2612
2612
2613 if bookmark and changesets:
2613 cmdutil.check_at_most_one_arg(opts, b'rev', b'bookmark')
2614 raise error.Abort(_(b"-r and -B are mutually exclusive"))
2615
2614
2616 if bookmark:
2615 if bookmark:
2617 if bookmark not in repo._bookmarks:
2616 if bookmark not in repo._bookmarks:
General Comments 0
You need to be logged in to leave comments. Login now