##// END OF EJS Templates
test-fileset: test file status predicates
Patrick Mezard -
r17364:0c41fb2d stable
parent child Browse files
Show More
@@ -7,10 +7,12 b''
7 7 $ echo a > a1
8 8 $ echo a > a2
9 9 $ echo b > b1
10 $ echo b > b2
10 11 $ hg ci -Am addfiles
11 12 adding a1
12 13 adding a2
13 14 adding b1
15 adding b2
14 16
15 17 Test operators and basic patterns
16 18
@@ -34,8 +36,43 b' Test operators and basic patterns'
34 36 a1
35 37 $ fileset 'not (r"a*")'
36 38 b1
39 b2
37 40 $ fileset '! ("a*")'
38 41 b1
42 b2
39 43 $ fileset 'a* - a1'
40 44 a2
41 45
46 Test files status
47
48 $ rm a1
49 $ hg rm a2
50 $ echo b >> b2
51 $ hg cp b1 c1
52 $ echo c > c2
53 $ echo c > c3
54 $ cat > .hgignore <<EOF
55 > \.hgignore
56 > 2$
57 > EOF
58 $ fileset 'modified()'
59 b2
60 $ fileset 'added()'
61 c1
62 $ fileset 'removed()'
63 a2
64 $ fileset 'deleted()'
65 a1
66 $ fileset 'unknown()'
67 c3
68 $ fileset 'ignored()'
69 .hgignore
70 c2
71 $ fileset 'hgignore()'
72 a2
73 b2
74 $ fileset 'clean()'
75 b1
76 $ fileset 'copied()'
77 c1
78
General Comments 0
You need to be logged in to leave comments. Login now