# HG changeset patch # User Pierre-Yves David # Date 1440116396 25200 # Node ID 4ee2af2194d4d34c61fb5649df1da445905df160 # Parent 8779ce81ea807839e7bacf7b4a594bf97dbdf232 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. diff -r 8779ce81ea80 -r 4ee2af2194d4 mercurial/revset.py --- 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