py3: use .startswith() instead of bytes[0]
authorPulkit Goyal <7895pulkit@gmail.com>
Mon, 05 Feb 2018 12:59:57 +0530
changeset 35954 7a991241f586
parent 35953 558e01a23f40
child 35955 83b9f96ce20f
py3: use .startswith() instead of bytes[0] Differential Revision: https://phab.mercurial-scm.org/D2040
mercurial/revset.py
--- a/mercurial/revset.py	Mon Feb 05 12:58:51 2018 +0530
+++ b/mercurial/revset.py	Mon Feb 05 12:59:57 2018 +0530
@@ -1841,7 +1841,7 @@
     keyflags = []
     for k in keys.split():
         fk = k
-        reverse = (k[0] == '-')
+        reverse = (k.startswith('-'))
         if reverse:
             k = k[1:]
         if k not in _sortkeyfuncs and k != 'topo':