comparison mercurial/commands.py @ 45905: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 0aa118f18d4b
children 50afeeeb7b79
comparison
equal deleted inserted replaced
45904:e63daff6e8ed 45905:e131dbf6ee15
997 See :hg:`help revisions.bisect` for more about the `bisect()` predicate. 997 See :hg:`help revisions.bisect` for more about the `bisect()` predicate.
998 998
999 Returns 0 on success. 999 Returns 0 on success.
1000 """ 1000 """
1001 # backward compatibility 1001 # backward compatibility
1002 if rev in b"good bad reset init".split(): 1002 if rev in (b"good", b"bad", b"reset", b"init"):
1003 ui.warn(_(b"(use of 'hg bisect <cmd>' is deprecated)\n")) 1003 ui.warn(_(b"(use of 'hg bisect <cmd>' is deprecated)\n"))
1004 cmd, rev, extra = rev, extra, None 1004 cmd, rev, extra = rev, extra, None
1005 if cmd == b"good": 1005 if cmd == b"good":
1006 good = True 1006 good = True
1007 elif cmd == b"bad": 1007 elif cmd == b"bad":