##// END OF EJS Templates
cmdutil.service: do not _exit(0) in the parent process...
cmdutil.service: do not _exit(0) in the parent process The fact that a parent process spawns a daemon does not necessarily means that it is the only think it has to do. This was forcing since 7c01599dd340 inotify processes launched implicitely to exit prematurely: when no inotify server was running, "hg st" for example would only launch a inotify server, _exit(0) and thus would not return file statuses. This changeset adds a test for implicitely launched inotify processes. Change to output of test-inotify-1208 is correct: it reflects the normal error message of "hg st" when not dying during "hg inserve" daemon creation.

File last commit:

r9859:951ec6c7 default
r9896:2c2f7593 stable
Show More
test-inotify-dirty-dirstate
71 lines | 1.0 KiB | text/plain | TextLexer
/ tests / test-inotify-dirty-dirstate
#!/bin/sh
# issues when status queries are issued when dirstate is dirty
"$TESTDIR/hghave" inotify || exit 80
echo "[extensions]" >> $HGRCPATH
echo "inotify=" >> $HGRCPATH
echo "fetch=" >> $HGRCPATH
echo % issue1810: inotify and fetch
mkdir test; cd test
hg init
hg inserve -d --pid-file=../hg.pid
cat ../hg.pid >> "$DAEMON_PIDS"
echo foo > foo
hg add
hg ci -m foo
cd ..
hg --config "extensions.inotify=!" clone test test2
cd test2
hg inserve -d --pid-file=../hg2.pid
cat ../hg2.pid >> "$DAEMON_PIDS"
echo bar > bar
hg add
hg ci -m bar
cd ../test
echo spam > spam
hg add
hg ci -m spam
cd ../test2
hg st
# abort, outstanding changes
hg fetch -q
hg st
cd ..
echo % issue1719: inotify and mq
echo "mq=" >> $HGRCPATH
hg init test-1719
cd test-1719
echo % inserve
hg inserve -d --pid-file=../hg-test-1719.pid
cat ../hg-test-1719.pid >> "$DAEMON_PIDS"
echo content > file
hg add file
hg qnew -f test.patch
hg status
hg qpop
echo % st should not output anything
hg status
hg qpush
echo % st should not output anything
hg status
hg qrefresh
hg status