comparison mercurial/revset.py @ 22792:bec4365a0707

addset: this is a smartset, update the docstring The documentation was still stating that this class is a not a smartset. We drop that part.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Fri, 03 Oct 2014 20:17:12 -0700
parents a074421fa4e1
children ff6689b47e48
comparison
equal deleted inserted replaced
22791:a074421fa4e1 22792:bec4365a0707
2467 performance on the __contains__ method 2467 performance on the __contains__ method
2468 2468
2469 If the ascending attribute is set, that means the two structures are 2469 If the ascending attribute is set, that means the two structures are
2470 ordered in either an ascending or descending way. Therefore, we can add 2470 ordered in either an ascending or descending way. Therefore, we can add
2471 them maintaining the order by iterating over both at the same time 2471 them maintaining the order by iterating over both at the same time
2472
2473 This class does not duck-type baseset and it's only supposed to be used
2474 internally
2475 """ 2472 """
2476 def __init__(self, revs1, revs2, ascending=None): 2473 def __init__(self, revs1, revs2, ascending=None):
2477 self._r1 = revs1 2474 self._r1 = revs1
2478 self._r2 = revs2 2475 self._r2 = revs2
2479 self._iter = None 2476 self._iter = None