Show More
@@ -1,32 +1,41 b'' | |||
|
1 | #!/bin/sh | |
|
2 | 1 | |
|
3 | "$TESTDIR/hghave" inotify || exit 80 | |
|
2 | $ "$TESTDIR/hghave" inotify || exit 80 | |
|
3 | $ hg init | |
|
4 | $ echo "[extensions]" >> $HGRCPATH | |
|
5 | $ echo "inotify=" >> $HGRCPATH | |
|
4 | 6 | |
|
5 | hg init | |
|
7 | inserve | |
|
6 | 8 | |
|
7 | echo "[extensions]" >> $HGRCPATH | |
|
8 | echo "inotify=" >> $HGRCPATH | |
|
9 | $ hg inserve -d --pid-file=hg.pid | |
|
10 | $ cat hg.pid >> "$DAEMON_PIDS" | |
|
9 | 11 | |
|
10 | echo % inserve | |
|
11 | hg inserve -d --pid-file=hg.pid | |
|
12 | cat hg.pid >> "$DAEMON_PIDS" | |
|
12 | let the daemon finish its stuff | |
|
13 | 13 | |
|
14 | # let the daemon finish its stuff | |
|
15 | sleep 1 | |
|
14 | $ sleep 1 | |
|
15 | ||
|
16 | empty | |
|
16 | 17 | |
|
17 | echo % empty | |
|
18 | hg debuginotify | |
|
18 | $ hg debuginotify | |
|
19 | directories being watched: | |
|
20 | / | |
|
21 | .hg/ | |
|
22 | $ mkdir a | |
|
23 | $ sleep 1 | |
|
19 | 24 | |
|
20 | mkdir a | |
|
21 | sleep 1 | |
|
25 | only 'a | |
|
22 | 26 | |
|
23 | echo % only 'a' | |
|
24 | hg debuginotify | |
|
27 | $ hg debuginotify | |
|
28 | directories being watched: | |
|
29 | / | |
|
30 | .hg/ | |
|
31 | a/ | |
|
32 | $ rmdir a | |
|
33 | $ sleep 1 | |
|
25 | 34 | |
|
26 | rmdir a | |
|
27 | sleep 1 | |
|
35 | empty again | |
|
28 | 36 | |
|
29 | echo % empty again | |
|
30 | hg debuginotify | |
|
31 | ||
|
32 | kill `cat hg.pid` | |
|
37 | $ hg debuginotify | |
|
38 | directories being watched: | |
|
39 | / | |
|
40 | .hg/ | |
|
41 | $ kill `cat hg.pid` |
|
1 | NO CONTENT: file was removed |
General Comments 0
You need to be logged in to leave comments.
Login now