Commit 9aad0d48 authored by Martin von Zweigbergk's avatar Martin von Zweigbergk

tag: leverage cmdutil.check_incompatible_arguments()

Differential Revision: https://phab.mercurial-scm.org/D9223
parent 4df5d3965a3e
Pipeline #11695 failed with stage
in 26 minutes and 6 seconds
......@@ -7088,6 +7088,7 @@ def tag(ui, repo, name1, *names, **opts):
Returns 0 on success.
"""
cmdutil.check_incompatible_arguments(opts, 'remove', ['rev'])
opts = pycompat.byteskwargs(opts)
with repo.wlock(), repo.lock():
rev_ = b"."
......@@ -7100,8 +7101,6 @@ def tag(ui, repo, name1, *names, **opts):
raise error.Abort(
_(b'tag names cannot consist entirely of whitespace')
)
if opts.get(b'rev') and opts.get(b'remove'):
raise error.Abort(_(b"--rev and --remove are incompatible"))
if opts.get(b'rev'):
rev_ = opts[b'rev']
message = opts.get(b'message')
......
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