From patchwork Mon Nov 23 17:18:33 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D9371: bisect: use tuple literal instead of split on string literal From: phabricator X-Patchwork-Id: 47651 Message-Id: To: Phabricator Cc: mercurial-devel@mercurial-scm.org Date: Mon, 23 Nov 2020 17:18:33 +0000 SimonSapin created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D9371 AFFECTED FILES mercurial/commands.py CHANGE DETAILS To: SimonSapin, #hg-reviewers Cc: mercurial-patches, mercurial-devel diff --git a/mercurial/commands.py b/mercurial/commands.py --- 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 ' is deprecated)\n")) cmd, rev, extra = rev, extra, None if cmd == b"good":