##// END OF EJS Templates
tests: test filesets with test-fileset.t
Patrick Mezard -
r17362:bd867a9c stable
parent child Browse files
Show More
@@ -0,0 +1,39 b''
1 $ fileset() {
2 > hg debugfileset "$@"
3 > }
4
5 $ hg init repo
6 $ cd repo
7 $ echo a > a1
8 $ echo a > a2
9 $ echo b > b1
10 $ hg ci -Am addfiles
11 adding a1
12 adding a2
13 adding b1
14
15 Test operators and basic patterns
16
17 $ fileset a1
18 a1
19 $ fileset 'a*'
20 a1
21 a2
22 $ fileset '"re:a\d"'
23 a1
24 a2
25 $ fileset 'a1 or a2'
26 a1
27 a2
28 $ fileset 'a1 | a2'
29 a1
30 a2
31 $ fileset 'a* and "*1"'
32 a1
33 $ fileset 'a* & "*1"'
34 a1
35 $ fileset 'not (r"a*")'
36 b1
37 $ fileset '! ("a*")'
38 b1
39
General Comments 0
You need to be logged in to leave comments. Login now