equal
deleted
inserted
replaced
1 |
|
2 $ "$TESTDIR/hghave" inotify || exit 80 |
|
3 $ echo "[extensions]" >> $HGRCPATH |
|
4 $ echo "inotify=" >> $HGRCPATH |
|
5 $ p="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" |
|
6 $ hg init $p |
|
7 $ cd $p |
|
8 |
|
9 fail |
|
10 |
|
11 $ ln -sf doesnotexist .hg/inotify.sock |
|
12 $ hg st |
|
13 abort: inotify-server: cannot start: .hg/inotify.sock is a broken symlink |
|
14 inotify-client: could not start inotify server: child process failed to start |
|
15 $ hg inserve |
|
16 abort: inotify-server: cannot start: .hg/inotify.sock is a broken symlink |
|
17 [255] |
|
18 $ rm .hg/inotify.sock |
|
19 |
|
20 inserve |
|
21 |
|
22 $ hg inserve -d --pid-file=hg.pid |
|
23 $ cat hg.pid >> "$DAEMON_PIDS" |
|
24 |
|
25 status |
|
26 |
|
27 $ hg status |
|
28 ? hg.pid |
|
29 |
|
30 if we try to start twice the server, make sure we get a correct error |
|
31 |
|
32 $ hg inserve -d --pid-file=hg2.pid |
|
33 abort: inotify-server: cannot start: socket is already bound |
|
34 abort: child process failed to start |
|
35 [255] |
|
36 $ kill `cat hg.pid` |
|
37 |
|
38 $ cd .. |
|