changeset 22826 | 4ffb327e4719 |
parent 22825 | 0e8bb81b58b9 |
child 22827 | c1107cb21df2 |
--- a/mercurial/revset.py Mon Oct 06 11:03:30 2014 -0700 +++ b/mercurial/revset.py Fri Oct 03 03:19:23 2014 -0500 @@ -2332,6 +2332,18 @@ self._list = data self._set = None + @util.propertycache + def _asclist(self): + asclist = self._list[:] + asclist.sort() + return asclist + + def fastasc(self): + return iter(self._asclist) + + def fastdesc(self): + return reversed(self._asclist) + def set(self): """Returns a set or a smartset containing all the elements.