mercurial/revset.py
changeset 21284 3e53a64345c1
parent 21283 b7f49b765241
child 21870 dd716807fd23
equal deleted inserted replaced
21283:b7f49b765241 21284:3e53a64345c1
  2819         else:
  2819         else:
  2820             count = 0
  2820             count = 0
  2821             start = self._start
  2821             start = self._start
  2822             end = self._end
  2822             end = self._end
  2823             for rev in self._hiddenrevs:
  2823             for rev in self._hiddenrevs:
  2824                 if (end < rev <= start) or (start <= rev and rev < end):
  2824                 if (end < rev <= start) or (start <= rev < end):
  2825                     count += 1
  2825                     count += 1
  2826             return abs(self._end - self._start) - count
  2826             return abs(self._end - self._start) - count
  2827 
  2827 
  2828     def __getitem__(self, x):
  2828     def __getitem__(self, x):
  2829         # Basic implementation to be changed in future patches.
  2829         # Basic implementation to be changed in future patches.