fullreposet: detect smartset using "isascending" instead of "set"
authorPierre-Yves David <pierre-yves.david@fb.com>
Fri, 10 Oct 2014 13:24:57 -0700
changeset 22883 e7b8cf352614
parent 22882 ecd27fee5c2b
child 22884 4584eec9aead
fullreposet: detect smartset using "isascending" instead of "set" The `.set()` function is going away.
mercurial/revset.py
--- a/mercurial/revset.py	Fri Oct 10 13:21:05 2014 -0700
+++ b/mercurial/revset.py	Fri Oct 10 13:24:57 2014 -0700
@@ -2980,7 +2980,7 @@
         This boldly assumes the other contains valid revs only.
         """
         # other not a smartset, make is so
-        if not util.safehasattr(other, 'set'):
+        if not util.safehasattr(other, 'isascending'):
             # filter out hidden revision
             # (this boldly assumes all smartset are pure)
             #