Mercurial > hg
comparison tests/test-fileset.t @ 38826:6371ab78c3b3
fileset: add phase to transform parsed tree
This isn't strictly necessary, but I decided to just follow the strategy
of the revset parsing.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 21 Jul 2018 16:11:36 +0900 |
parents | 4fe8d1f077b8 |
children | 48fc2a8af345 |
comparison
equal
deleted
inserted
replaced
38825:8a9f6076e60c | 38826:6371ab78c3b3 |
---|---|
156 b1 | 156 b1 |
157 b2 | 157 b2 |
158 | 158 |
159 $ fileset -p all -s 'a1 or a2 or (grep("b") & clean())' | 159 $ fileset -p all -s 'a1 or a2 or (grep("b") & clean())' |
160 * parsed: | 160 * parsed: |
161 (or | |
162 (symbol 'a1') | |
163 (symbol 'a2') | |
164 (group | |
165 (and | |
166 (func | |
167 (symbol 'grep') | |
168 (string 'b')) | |
169 (func | |
170 (symbol 'clean') | |
171 None)))) | |
172 * analyzed: | |
161 (or | 173 (or |
162 (symbol 'a1') | 174 (symbol 'a1') |
163 (symbol 'a2') | 175 (symbol 'a2') |
164 (group | 176 (group |
165 (and | 177 (and |