##// END OF EJS Templates
revset: added __add__ method to baseset class
Lucas Moscovicz -
r20417:827561a9 default
parent child Browse files
Show More
@@ -2067,5 +2067,10 b' class baseset(list):'
2067 2067 x = x.set()
2068 2068 return baseset([y for y in self if y in x])
2069 2069
2070 def __add__(self, x):
2071 s = self.set()
2072 l = [r for r in x if r not in s]
2073 return baseset(list(self) + l)
2074
2070 2075 # tell hggettext to extract docstrings from these functions:
2071 2076 i18nfunctions = symbols.values()
General Comments 0
You need to be logged in to leave comments. Login now