revset: cosmetic changes in spanset range comparison
authorPierre-Yves David <pierre-yves.david@fb.com>
Mon, 28 Apr 2014 15:14:11 -0700
changeset 21284 3e53a64345c1
parent 21283 b7f49b765241
child 21285 7078ce067367
revset: cosmetic changes in spanset range comparison We use the python syntax for range comparison: `a < x < c`. This is shorter, more readable and less error prone. This comparison escaped the cleanup make in e2031c8ca4f8
mercurial/revset.py
--- a/mercurial/revset.py	Fri Apr 25 23:38:24 2014 -0700
+++ b/mercurial/revset.py	Mon Apr 28 15:14:11 2014 -0700
@@ -2821,7 +2821,7 @@
             start = self._start
             end = self._end
             for rev in self._hiddenrevs:
-                if (end < rev <= start) or (start <= rev and rev < end):
+                if (end < rev <= start) or (start <= rev < end):
                     count += 1
             return abs(self._end - self._start) - count