# HG changeset patch # User Lucas Moscovicz # Date 1391715436 28800 # Node ID 827561a99569f9a597c8f81be915a46e6e0c043a # Parent e72bcc245ecb616c55c234d64e662b249aa7e245 revset: added __add__ method to baseset class diff -r e72bcc245ecb -r 827561a99569 mercurial/revset.py --- a/mercurial/revset.py Thu Feb 06 11:33:36 2014 -0800 +++ b/mercurial/revset.py Thu Feb 06 11:37:16 2014 -0800 @@ -2067,5 +2067,10 @@ x = x.set() return baseset([y for y in self if y in x]) + def __add__(self, x): + s = self.set() + l = [r for r in x if r not in s] + return baseset(list(self) + l) + # tell hggettext to extract docstrings from these functions: i18nfunctions = symbols.values()