Mercurial > hg
comparison mercurial/revset.py @ 22891:5f5d6db79f31
spanset: remove `.set()` definition
All my friends are dead.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Fri, 10 Oct 2014 13:09:22 -0700 |
parents | d9be905ca991 |
children | 5aae3dea8044 |
comparison
equal
deleted
inserted
replaced
22890:d9be905ca991 | 22891:5f5d6db79f31 |
---|---|
2904 def __getitem__(self, x): | 2904 def __getitem__(self, x): |
2905 # Basic implementation to be changed in future patches. | 2905 # Basic implementation to be changed in future patches. |
2906 l = baseset([r for r in self]) | 2906 l = baseset([r for r in self]) |
2907 return l[x] | 2907 return l[x] |
2908 | 2908 |
2909 def set(self): | |
2910 return self | |
2911 | |
2912 def isascending(self): | 2909 def isascending(self): |
2913 return self._start <= self._end | 2910 return self._start <= self._end |
2914 | 2911 |
2915 def isdescending(self): | 2912 def isdescending(self): |
2916 return self._start >= self._end | 2913 return self._start >= self._end |