Mercurial > public > mercurial-scm > hg
comparison mercurial/filesetlang.py @ 38827:48fc2a8af345
fileset: drop 'group' node from tree to be evaluated
This helps rewriting a parsed tree.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 21 Jul 2018 16:13:30 +0900 |
parents | 6371ab78c3b3 |
children | 3ea6ce609747 |
comparison
equal
deleted
inserted
replaced
38826:6371ab78c3b3 | 38827:48fc2a8af345 |
---|---|
140 return x | 140 return x |
141 if op == 'kindpat': | 141 if op == 'kindpat': |
142 getsymbol(x[1]) # kind must be a symbol | 142 getsymbol(x[1]) # kind must be a symbol |
143 t = _analyze(x[2]) | 143 t = _analyze(x[2]) |
144 return (op, x[1], t) | 144 return (op, x[1], t) |
145 if op in {'group', 'not', 'negate'}: | 145 if op == 'group': |
146 return _analyze(x[1]) | |
147 if op in {'not', 'negate'}: | |
146 t = _analyze(x[1]) | 148 t = _analyze(x[1]) |
147 return (op, t) | 149 return (op, t) |
148 if op in {'and', 'minus'}: | 150 if op in {'and', 'minus'}: |
149 ta = _analyze(x[1]) | 151 ta = _analyze(x[1]) |
150 tb = _analyze(x[2]) | 152 tb = _analyze(x[2]) |