changeset 21284:3e53a64345c1

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
author Pierre-Yves David <pierre-yves.david@fb.com>
date Mon, 28 Apr 2014 15:14:11 -0700
parents b7f49b765241
children 7078ce067367
files mercurial/revset.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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