Commit 3937294a authored by Martin von Zweigbergk's avatar Martin von Zweigbergk

revert: leverage cmdutil.check_incompatible_arguments()

Differential Revision: https://phab.mercurial-scm.org/D9221
parent b5e0746e272b
......@@ -6057,8 +6057,7 @@ def revert(ui, repo, *pats, **opts):
opts = pycompat.byteskwargs(opts)
if opts.get(b"date"):
if opts.get(b"rev"):
raise error.Abort(_(b"you can't specify a revision and a date"))
cmdutil.check_incompatible_arguments(opts, b'date', [b'rev'])
opts[b"rev"] = cmdutil.finddate(ui, repo, opts[b"date"])
parent, p2 = repo.dirstate.parents()
......
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