Show More
@@ -1,24 +1,29 b'' | |||||
1 | #!/bin/sh |
|
|||
2 |
|
||||
3 | "$TESTDIR/hghave" inotify || exit 80 |
|
|||
4 |
|
1 | |||
5 | echo "[extensions]" >> $HGRCPATH |
|
2 | $ "$TESTDIR/hghave" inotify || exit 80 | |
6 |
echo " |
|
3 | $ echo "[extensions]" >> $HGRCPATH | |
|
4 | $ echo "inotify=" >> $HGRCPATH | |||
|
5 | $ p="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" | |||
|
6 | $ hg init $p | |||
|
7 | $ cd $p | |||
7 |
|
8 | |||
8 | p="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" |
|
9 | fail | |
9 | hg init $p |
|
|||
10 | cd $p |
|
|||
11 |
|
10 | |||
12 | echo % fail |
|
11 | $ ln -sf doesnotexist .hg/inotify.sock | |
13 | ln -sf doesnotexist .hg/inotify.sock |
|
12 | $ hg st | |
14 | hg st |
|
13 | abort: inotify-server: cannot start: .hg/inotify.sock is a broken symlink | |
15 | hg inserve |
|
14 | inotify-client: could not start inotify server: child process failed to start | |
16 | rm .hg/inotify.sock |
|
15 | $ hg inserve | |
|
16 | abort: inotify-server: cannot start: .hg/inotify.sock is a broken symlink | |||
|
17 | [255] | |||
|
18 | $ rm .hg/inotify.sock | |||
17 |
|
19 | |||
18 |
|
|
20 | inserve | |
19 | hg inserve -d --pid-file=hg.pid |
|
21 | ||
20 | cat hg.pid >> "$DAEMON_PIDS" |
|
22 | $ hg inserve -d --pid-file=hg.pid | |
21 | echo % status |
|
23 | $ cat hg.pid >> "$DAEMON_PIDS" | |
22 | hg status |
|
|||
23 |
|
24 | |||
24 | kill `cat hg.pid` |
|
25 | status | |
|
26 | ||||
|
27 | $ hg status | |||
|
28 | ? hg.pid | |||
|
29 | $ 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