diff --git a/mercurial/commands.py b/mercurial/commands.py
index e63daff6e8ed27b5e840fdc0dff934e60a88f630_bWVyY3VyaWFsL2NvbW1hbmRzLnB5..e131dbf6ee15a2e67b6dd43f178191bbcc4b6753_bWVyY3VyaWFsL2NvbW1hbmRzLnB5 100644
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -999,7 +999,7 @@
     Returns 0 on success.
     """
     # backward compatibility
-    if rev in b"good bad reset init".split():
+    if rev in (b"good", b"bad", b"reset", b"init"):
         ui.warn(_(b"(use of 'hg bisect <cmd>' is deprecated)\n"))
         cmd, rev, extra = rev, extra, None
         if cmd == b"good":