Show More
@@ -1,45 +1,45 | |||||
1 | #!/bin/sh |
|
1 | #!/bin/sh | |
2 |
|
2 | |||
3 | hg init |
|
3 | hg init | |
4 | touch a.o |
|
4 | touch a.o | |
5 | touch a.c |
|
5 | touch a.c | |
6 | touch syntax |
|
6 | touch syntax | |
7 | mkdir dir |
|
7 | mkdir dir | |
8 | touch dir/a.o |
|
8 | touch dir/a.o | |
9 | touch dir/b.o |
|
9 | touch dir/b.o | |
10 | touch dir/c.o |
|
10 | touch dir/c.o | |
11 |
|
11 | |||
12 | hg add dir/a.o |
|
12 | hg add dir/a.o | |
13 | hg commit -m 0 |
|
13 | hg commit -m 0 | |
14 | hg add dir/b.o |
|
14 | hg add dir/b.o | |
15 |
|
15 | |||
16 | echo "--" ; hg status |
|
16 | echo "--" ; hg status | |
17 |
|
17 | |||
18 | echo "*.o" > .hgignore |
|
18 | echo "*.o" > .hgignore | |
19 | echo "--" ; hg status |
|
19 | echo "--" ; hg status 2>&1 | sed -e 's/abort: .*\.hgignore:/abort: .hgignore:/' | |
20 |
|
20 | |||
21 | echo ".*\.o" > .hgignore |
|
21 | echo ".*\.o" > .hgignore | |
22 | echo "--" ; hg status |
|
22 | echo "--" ; hg status | |
23 |
|
23 | |||
24 | # XXX: broken |
|
24 | # XXX: broken | |
25 | #echo "glob:**.o" > .hgignore |
|
25 | #echo "glob:**.o" > .hgignore | |
26 | #echo "--" ; hg status |
|
26 | #echo "--" ; hg status | |
27 | # |
|
27 | # | |
28 | #echo "glob:*.o" > .hgignore |
|
28 | #echo "glob:*.o" > .hgignore | |
29 | #echo "--" ; hg status |
|
29 | #echo "--" ; hg status | |
30 |
|
30 | |||
31 | echo "syntax: invalid" > .hgignore |
|
31 | echo "syntax: invalid" > .hgignore | |
32 | echo "--" ; hg status |
|
32 | echo "--" ; hg status 2>&1 | sed -e 's/.*\.hgignore:/.hgignore:/' | |
33 |
|
33 | |||
34 | echo "syntax: glob" > .hgignore |
|
34 | echo "syntax: glob" > .hgignore | |
35 | echo "*.o" >> .hgignore |
|
35 | echo "*.o" >> .hgignore | |
36 | echo "--" ; hg status |
|
36 | echo "--" ; hg status | |
37 |
|
37 | |||
38 | echo "relglob:syntax*" > .hgignore |
|
38 | echo "relglob:syntax*" > .hgignore | |
39 | echo "--" ; hg status |
|
39 | echo "--" ; hg status | |
40 |
|
40 | |||
41 | echo "relglob:*" > .hgignore |
|
41 | echo "relglob:*" > .hgignore | |
42 | echo "--" ; hg status |
|
42 | echo "--" ; hg status | |
43 |
|
43 | |||
44 | cd dir |
|
44 | cd dir | |
45 | echo "--" ; hg status . |
|
45 | echo "--" ; hg status . |
General Comments 0
You need to be logged in to leave comments.
Login now