2008-09-06 14:49:20 +04:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
"$TESTDIR/hghave" inotify || exit 80
|
|
|
|
|
|
|
|
echo "[extensions]" >> $HGRCPATH
|
|
|
|
echo "inotify=" >> $HGRCPATH
|
|
|
|
|
|
|
|
p="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
|
|
|
|
hg init $p
|
|
|
|
cd $p
|
|
|
|
|
2008-09-06 16:11:33 +04:00
|
|
|
echo % fail
|
|
|
|
ln -sf doesnotexist .hg/inotify.sock
|
|
|
|
hg st
|
2008-09-06 14:49:20 +04:00
|
|
|
hg inserve
|
2008-09-06 16:11:33 +04:00
|
|
|
rm .hg/inotify.sock
|
|
|
|
|
|
|
|
echo % inserve
|
|
|
|
hg inserve -d --pid-file=hg.pid
|
|
|
|
cat hg.pid >> "$DAEMON_PIDS"
|
2008-09-06 14:49:20 +04:00
|
|
|
echo % status
|
|
|
|
hg status
|
2008-09-06 16:11:33 +04:00
|
|
|
|
|
|
|
kill `cat hg.pid`
|