Show More
@@ -2642,14 +2642,15 b' class addset(abstractsmartset):' | |||||
2642 | self._ascending = not self._ascending |
|
2642 | self._ascending = not self._ascending | |
2643 |
|
2643 | |||
2644 | def first(self): |
|
2644 | def first(self): | |
2645 |
|
|
2645 | for x in self: | |
2646 |
return |
|
2646 | return x | |
2647 | return None |
|
2647 | return None | |
2648 |
|
2648 | |||
2649 | def last(self): |
|
2649 | def last(self): | |
2650 |
|
|
2650 | self.reverse() | |
2651 |
|
|
2651 | val = self.first() | |
2652 | return None |
|
2652 | self.reverse() | |
|
2653 | return val | |||
2653 |
|
2654 | |||
2654 | class generatorset(abstractsmartset): |
|
2655 | class generatorset(abstractsmartset): | |
2655 | """Wrap a generator for lazy iteration |
|
2656 | """Wrap a generator for lazy iteration |
@@ -1581,3 +1581,19 b' Test that secret mq patch does not break' | |||||
1581 | tip [0-9a-f]{40} (re) |
|
1581 | tip [0-9a-f]{40} (re) | |
1582 |
|
1582 | |||
1583 | $ cd .. |
|
1583 | $ cd .. | |
|
1584 | ||||
|
1585 | Test interraction with revset (issue4426) | |||
|
1586 | ||||
|
1587 | $ hg init issue4426 | |||
|
1588 | $ cd issue4426 | |||
|
1589 | ||||
|
1590 | $ echo a > a | |||
|
1591 | $ hg ci -Am a | |||
|
1592 | adding a | |||
|
1593 | $ echo a >> a | |||
|
1594 | $ hg ci -m a | |||
|
1595 | $ echo a >> a | |||
|
1596 | $ hg ci -m a | |||
|
1597 | $ hg qimport -r 0:: | |||
|
1598 | ||||
|
1599 | $ cd .. |
General Comments 0
You need to be logged in to leave comments.
Login now