mercurial/revset.py
changeset 35914 7a991241f586
parent 35904 fc44c2657dc5
child 36580 04e50037d957
--- 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':