equal
deleted
inserted
replaced
4 $ echo "inotify=" >> $HGRCPATH |
4 $ echo "inotify=" >> $HGRCPATH |
5 $ p="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" |
5 $ p="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" |
6 $ hg init $p |
6 $ hg init $p |
7 $ cd $p |
7 $ cd $p |
8 |
8 |
9 fail |
9 dangling symlink should be deleted |
10 |
10 |
11 $ ln -sf doesnotexist .hg/inotify.sock |
11 $ ln -sf doesnotexist .hg/inotify.sock |
12 $ hg st |
12 $ hg --config inotify.pidfile=../hg.pid st |
13 abort: inotify-server: cannot start: .hg/inotify.sock is a broken symlink |
13 $ kill `cat ../hg.pid` |
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 |
14 |
20 inserve |
15 inserve |
21 |
16 |
22 $ hg inserve -d --pid-file=hg.pid |
17 $ hg inserve -d --pid-file=hg.pid |
23 $ cat hg.pid >> "$DAEMON_PIDS" |
18 $ cat hg.pid >> "$DAEMON_PIDS" |