# HG changeset patch # User Martin von Zweigbergk # Date 1602826568 25200 # Node ID 3b23cec4953ffa49b258fd537245cf5d96d28a59 # Parent b5e0746e272bea275b281ee0e9762dbe05d0a703 revert: leverage cmdutil.check_incompatible_arguments() Differential Revision: https://phab.mercurial-scm.org/D9221 diff -r b5e0746e272b -r 3b23cec4953f mercurial/commands.py --- a/mercurial/commands.py Thu Oct 15 22:23:45 2020 -0700 +++ b/mercurial/commands.py Thu Oct 15 22:36:08 2020 -0700 @@ -6057,8 +6057,7 @@ 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()