Mercurial > hg
comparison tests/test-glog-beautifygraph.t @ 38580:9f9ffe5f687c
match: compose 'set:' pattern as matcher
Baby step towards porting fileset to matcher composition.
We can't use the exactmatcher since it would provide a computed set as exact
paths. That's why we use the predicatematcher with fset.__contains__. This
will be cleaned up later.
The test change in test-glog.t means that the "set:copied()" pattern is no
longer be processed as a slow path. That's because the fset is empty. This
will also change in future patches.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 10 Jun 2018 16:08:58 +0900 |
parents | 9abe91a503da |
children | 760cc5dc01e8 |
comparison
equal
deleted
inserted
replaced
38579:ec0cee4c1fff | 38580:9f9ffe5f687c |
---|---|
2021 | 2021 |
2022 $ hg up -q 4 | 2022 $ hg up -q 4 |
2023 $ testlog "set:copied()" | 2023 $ testlog "set:copied()" |
2024 [] | 2024 [] |
2025 (func | 2025 (func |
2026 (symbol '_matchfiles') | 2026 (symbol 'filelog') |
2027 (list | 2027 (string 'set:copied()')) |
2028 (string 'r:') | |
2029 (string 'd:relpath') | |
2030 (string 'p:set:copied()'))) | |
2031 <filteredset | 2028 <filteredset |
2032 <spanset- 0:7>, | 2029 <spanset- 0:7>, set([])> |
2033 <matchfiles patterns=['set:copied()'], include=[] exclude=[], default='relpath', rev=2147483647>> | |
2034 $ testlog --include "set:copied()" | 2030 $ testlog --include "set:copied()" |
2035 [] | 2031 [] |
2036 (func | 2032 [] |
2037 (symbol '_matchfiles') | 2033 <spanset- 0:7> |
2038 (list | |
2039 (string 'r:') | |
2040 (string 'd:relpath') | |
2041 (string 'i:set:copied()'))) | |
2042 <filteredset | |
2043 <spanset- 0:7>, | |
2044 <matchfiles patterns=[], include=['set:copied()'] exclude=[], default='relpath', rev=2147483647>> | |
2045 $ testlog -r "sort(file('set:copied()'), -rev)" | 2034 $ testlog -r "sort(file('set:copied()'), -rev)" |
2046 ["sort(file('set:copied()'), -rev)"] | 2035 ["sort(file('set:copied()'), -rev)"] |
2047 [] | 2036 [] |
2048 <filteredset | 2037 <filteredset |
2049 <fullreposet- 0:7>, | 2038 <fullreposet- 0:7>, |