diff --git a/mercurial/commands.py b/mercurial/commands.py
index 4df5d3965a3ebe12f9cc6e49182cdaeb500241e5_bWVyY3VyaWFsL2NvbW1hbmRzLnB5..94f681b84c7016289763937cde633cb1d8c831b1_bWVyY3VyaWFsL2NvbW1hbmRzLnB5 100644
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -7088,6 +7088,7 @@
 
     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 @@
                 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')