mercurial/revset.py
branchstable
changeset 21204 1d7a2771aa36
parent 21201 c8b9c6147108
child 21205 e2031c8ca4f8
equal deleted inserted replaced
21203:9f12d8665c7b 21204:1d7a2771aa36
  2782         else:
  2782         else:
  2783             for r in iterrange:
  2783             for r in iterrange:
  2784                 yield r
  2784                 yield r
  2785 
  2785 
  2786     def __contains__(self, rev):
  2786     def __contains__(self, rev):
  2787         return self._contained(rev) and not (self._hiddenrevs and rev in
  2787         return (((self._end < rev <= self._start)
  2788                 self._hiddenrevs)
  2788                   or (self._start <= rev < self._end))
       
  2789                 and not (self._hiddenrevs and rev in self._hiddenrevs))
  2789 
  2790 
  2790     def __nonzero__(self):
  2791     def __nonzero__(self):
  2791         for r in self:
  2792         for r in self:
  2792             return True
  2793             return True
  2793         return False
  2794         return False