D2040: py3: use .startswith() instead of bytes[0]
pulkit (Pulkit Goyal)
phabricator at mercurial-scm.org
Mon Feb 5 09:27:11 EST 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG7a991241f586: py3: use .startswith() instead of bytes[0] (authored by pulkit, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D2040?vs=5198&id=5211
REVISION DETAIL
https://phab.mercurial-scm.org/D2040
AFFECTED FILES
mercurial/revset.py
CHANGE DETAILS
diff --git a/mercurial/revset.py b/mercurial/revset.py
--- a/mercurial/revset.py
+++ b/mercurial/revset.py
@@ -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':
To: pulkit, #hg-reviewers, yuja
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list