# HG changeset patch # User Lucas Moscovicz # Date 1394762250 25200 # Node ID fb9852c46a42b7e4d7639204a99c2aa0c7d65c54 # Parent 6894223ebc38c4bfc9d6a3be4a9a0b649afca6bd revset: added reverse method to addset This method is needed to duck type generatorset. diff -r 6894223ebc38 -r fb9852c46a42 mercurial/revset.py --- a/mercurial/revset.py Thu Mar 13 13:29:04 2014 -0700 +++ b/mercurial/revset.py Thu Mar 13 18:57:30 2014 -0700 @@ -2409,6 +2409,11 @@ def set(self): return self + def reverse(self): + self._list.reverse() + if self._ascending is not None: + self._ascending = not self._ascending + class _generatorset(object): """Wrap a generator for lazy iteration