mercurial/revset.py
branchstable
changeset 21215 717ba2c3c9da
parent 21214 0952904dc1e5
child 21217 2195ac506c6a
equal deleted inserted replaced
21214:0952904dc1e5 21215:717ba2c3c9da
  2417     def descending(self):
  2417     def descending(self):
  2418         if self._ascending:
  2418         if self._ascending:
  2419             self.reverse()
  2419             self.reverse()
  2420 
  2420 
  2421     def __and__(self, x):
  2421     def __and__(self, x):
  2422         return orderedlazyset(self, lambda r: r in x,
  2422         return orderedlazyset(self, x.__contains__,
  2423                 ascending=self._ascending)
  2423                 ascending=self._ascending)
  2424 
  2424 
  2425     def __sub__(self, x):
  2425     def __sub__(self, x):
  2426         return orderedlazyset(self, lambda r: r not in x,
  2426         return orderedlazyset(self, lambda r: r not in x,
  2427                 ascending=self._ascending)
  2427                 ascending=self._ascending)