changeset 45920:e131dbf6ee15

bisect: use tuple literal instead of split on string literal Differential Revision: https://phab.mercurial-scm.org/D9371
author Simon Sapin <simon-commits@exyr.org>
date Mon, 23 Nov 2020 12:20:19 +0100
parents e63daff6e8ed
children 95c4cca641f6
files mercurial/commands.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/commands.py	Mon Nov 23 11:58:52 2020 +0100
+++ b/mercurial/commands.py	Mon Nov 23 12:20:19 2020 +0100
@@ -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":