baseset: keep the input set around
Baseset needs a list to operate, but will convert that list back to a set for
membership testing. It seems a bit silly to convert the set into a list to
convert it back afterward.
--- a/mercurial/revset.py Sun Aug 16 09:30:37 2015 +0900
+++ b/mercurial/revset.py Thu Aug 20 17:19:56 2015 -0700
@@ -2967,6 +2967,8 @@
"""
def __init__(self, data=()):
if not isinstance(data, list):
+ if isinstance(data, set):
+ self._set = data
data = list(data)
self._list = data
self._ascending = None