Show More
@@ -1,27 +1,31 b'' | |||||
1 | #!/bin/sh |
|
|||
2 |
|
1 | |||
3 | "$TESTDIR/hghave" inotify || exit 80 |
|
2 | $ "$TESTDIR/hghave" inotify || exit 80 | |
4 |
|
3 | $ hg init | ||
5 | hg init |
|
4 | $ touch a b | |
|
5 | $ hg add a b | |||
|
6 | $ rm b | |||
6 |
|
7 | |||
7 | touch a b |
|
8 | status without inotify | |
8 | hg add a b |
|
|||
9 | rm b |
|
|||
10 |
|
9 | |||
11 | echo % status without inotify |
|
10 | $ hg st | |
12 | hg st |
|
11 | A a | |
|
12 | ! b | |||
|
13 | $ echo "[extensions]" >> $HGRCPATH | |||
|
14 | $ echo "inotify=" >> $HGRCPATH | |||
13 |
|
15 | |||
14 | echo "[extensions]" >> $HGRCPATH |
|
16 | inserve | |
15 | echo "inotify=" >> $HGRCPATH |
|
|||
16 |
|
17 | |||
17 | echo % inserve |
|
18 | $ hg inserve -d --pid-file=hg.pid 2>&1 | |
18 | hg inserve -d --pid-file=hg.pid 2>&1 |
|
19 | $ cat hg.pid >> "$DAEMON_PIDS" | |
19 | cat hg.pid >> "$DAEMON_PIDS" |
|
20 | ||
|
21 | status | |||
20 |
|
22 | |||
21 | echo % status |
|
23 | $ hg st | |
22 | hg st |
|
24 | A a | |
|
25 | ! b | |||
|
26 | ? hg.pid | |||
|
27 | $ sleep 1 | |||
23 |
|
28 | |||
24 | sleep 1 |
|
29 | Are we able to kill the service? if not, the service died on some error | |
25 | echo "Are we able to kill the service? if not, the service died on some error" |
|
|||
26 | kill `cat hg.pid` |
|
|||
27 |
|
30 | |||
|
31 | $ kill `cat hg.pid` |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed |
General Comments 0
You need to be logged in to leave comments.
Login now