comparison mercurial/revset.py @ 22883:e7b8cf352614

fullreposet: detect smartset using "isascending" instead of "set" The `.set()` function is going away.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Fri, 10 Oct 2014 13:24:57 -0700
parents ecd27fee5c2b
children 4584eec9aead
comparison
equal deleted inserted replaced
22882:ecd27fee5c2b 22883:e7b8cf352614
2978 self. Therefor `self & other = other`. 2978 self. Therefor `self & other = other`.
2979 2979
2980 This boldly assumes the other contains valid revs only. 2980 This boldly assumes the other contains valid revs only.
2981 """ 2981 """
2982 # other not a smartset, make is so 2982 # other not a smartset, make is so
2983 if not util.safehasattr(other, 'set'): 2983 if not util.safehasattr(other, 'isascending'):
2984 # filter out hidden revision 2984 # filter out hidden revision
2985 # (this boldly assumes all smartset are pure) 2985 # (this boldly assumes all smartset are pure)
2986 # 2986 #
2987 # `other` was used with "&", let's assume this is a set like 2987 # `other` was used with "&", let's assume this is a set like
2988 # object. 2988 # object.