equal
deleted
inserted
replaced
|
1 #!/bin/sh |
|
2 |
|
3 hg init |
|
4 touch a.o |
|
5 touch a.c |
|
6 touch syntax |
|
7 mkdir dir |
|
8 touch dir/a.o |
|
9 touch dir/b.o |
|
10 touch dir/c.o |
|
11 |
|
12 hg add dir/a.o |
|
13 hg commit -m 0 |
|
14 hg add dir/b.o |
|
15 |
|
16 echo "--" ; hg status |
|
17 |
|
18 echo "*.o" > .hgignore |
|
19 echo "--" ; hg status |
|
20 |
|
21 echo ".*\.o" > .hgignore |
|
22 echo "--" ; hg status |
|
23 |
|
24 # XXX: broken |
|
25 #echo "glob:**.o" > .hgignore |
|
26 #echo "--" ; hg status |
|
27 # |
|
28 #echo "glob:*.o" > .hgignore |
|
29 #echo "--" ; hg status |
|
30 |
|
31 echo "syntax: invalid" > .hgignore |
|
32 echo "--" ; hg status |
|
33 |
|
34 echo "syntax: glob" > .hgignore |
|
35 echo "*.o" >> .hgignore |
|
36 echo "--" ; hg status |
|
37 |
|
38 echo "relglob:syntax*" > .hgignore |
|
39 echo "--" ; hg status |
|
40 |
|
41 echo "relglob:*" > .hgignore |
|
42 echo "--" ; hg status |