Submitter | Pierre-Yves David |
---|---|
Date | Aug. 21, 2015, 10:58 p.m. |
Message ID | <76e8706080029160e4b7.1440197921@marginatus.alto.octopoid.net> |
Download | mbox | patch |
Permalink | /patch/10249/ |
State | Accepted |
Headers | show |
Comments
Patch
diff --git a/mercurial/revset.py b/mercurial/revset.py --- a/mercurial/revset.py +++ b/mercurial/revset.py @@ -2964,10 +2964,12 @@ class baseset(abstractsmartset): Every method in this class should be implemented by any smartset class. """ 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 @util.propertycache