Commit 51edbff3 authored by Martin von Zweigbergk's avatar Martin von Zweigbergk
Browse files

serve: leverage cmdutil.check_incompatible_arguments()

Differential Revision: https://phab.mercurial-scm.org/D9222
parent 3b23cec4953f
......@@ -6317,9 +6317,8 @@ def serve(ui, repo, **opts):
Returns 0 on success.
"""
cmdutil.check_incompatible_arguments(opts, 'stdio', ['cmdserver'])
opts = pycompat.byteskwargs(opts)
if opts[b"stdio"] and opts[b"cmdserver"]:
raise error.Abort(_(b"cannot use --stdio with --cmdserver"))
if opts[b"print_url"] and ui.verbose:
raise error.Abort(_(b"cannot use --print-url with --verbose"))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment