changeset 20711:b95490cf8abd

revset: added set method to addset to duck type generatorset Since this class is only going to be used inside revset.py (it does not duck type baseset) it needs to duck type only a few more methods for the next patches.
author Lucas Moscovicz <lmoscovicz@fb.com>
date Mon, 10 Mar 2014 10:49:04 -0700
parents 9c1665f36588
children c152e538b85b
files mercurial/revset.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/revset.py	Thu Mar 13 15:00:34 2014 -0500
+++ b/mercurial/revset.py	Mon Mar 10 10:49:04 2014 -0700
@@ -2340,6 +2340,9 @@
     def __contains__(self, x):
         return x in self._r1 or x in self._r2
 
+    def set(self):
+        return self
+
 class _generatorset(object):
     """Wrap a generator for lazy iteration