Mercurial > hg
changeset 35914:7a991241f586
py3: use .startswith() instead of bytes[0]
Differential Revision: https://phab.mercurial-scm.org/D2040
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Mon, 05 Feb 2018 12:59:57 +0530 |
parents | 558e01a23f40 |
children | 83b9f96ce20f |
files | mercurial/revset.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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':