Mercurial > public > mercurial-scm > hg
comparison mercurial/revset.py @ 25105:2f34746c27df
revset: remove unused 'only' from methods table
The infix 'only' operator is mapped to 'only()' function by optimize(), so
it won't be looked up as a method. The test shows it.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Fri, 15 May 2015 22:38:24 +0900 |
parents | bb2f543b48b5 |
children | 5548f558db3d |
comparison
equal
deleted
inserted
replaced
25104:d6453f6fbdba | 25105:2f34746c27df |
---|---|
2092 "list": listset, | 2092 "list": listset, |
2093 "func": func, | 2093 "func": func, |
2094 "ancestor": ancestorspec, | 2094 "ancestor": ancestorspec, |
2095 "parent": parentspec, | 2095 "parent": parentspec, |
2096 "parentpost": p1, | 2096 "parentpost": p1, |
2097 "only": only, | |
2098 } | 2097 } |
2099 | 2098 |
2100 def optimize(x, small): | 2099 def optimize(x, small): |
2101 if x is None: | 2100 if x is None: |
2102 return 0, x | 2101 return 0, x |