diff --git a/tests/test-inotify-dirty-dirstate.out b/tests/test-inotify-dirty-dirstate.out deleted file mode 100644 --- a/tests/test-inotify-dirty-dirstate.out +++ /dev/null @@ -1,14 +0,0 @@ -% issue1810: inotify and fetch -adding foo -updating to branch default -1 files updated, 0 files merged, 0 files removed, 0 files unresolved -adding bar -adding spam -% issue1719: inotify and mq -% inserve -popping test.patch -patch queue now empty -% st should not output anything -applying test.patch -now at: test.patch -% st should not output anything diff --git a/tests/test-inotify-dirty-dirstate b/tests/test-inotify-dirty-dirstate.t old mode 100755 new mode 100644 rename from tests/test-inotify-dirty-dirstate rename to tests/test-inotify-dirty-dirstate.t --- a/tests/test-inotify-dirty-dirstate +++ b/tests/test-inotify-dirty-dirstate.t @@ -1,71 +1,71 @@ -#!/bin/sh - -# issues when status queries are issued when dirstate is dirty - -"$TESTDIR/hghave" inotify || exit 80 +issues when status queries are issued when dirstate is dirty -echo "[extensions]" >> $HGRCPATH -echo "inotify=" >> $HGRCPATH -echo "fetch=" >> $HGRCPATH + $ "$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" +issue1810: inotify and fetch -echo foo > foo -hg add -hg ci -m foo - -cd .. - -hg --config "inotify.pidfile=../hg2.pid" clone test test2 -cat ../hg2.pid >> "$DAEMON_PIDS" - -cd test2 -echo bar > bar -hg add -hg ci -m bar -cd ../test -echo spam > spam -hg add -hg ci -m spam -cd ../test2 -hg st + $ mkdir test; cd test + $ hg init + $ hg inserve -d --pid-file=../hg.pid + $ cat ../hg.pid >> "$DAEMON_PIDS" + $ echo foo > foo + $ hg add + adding foo + $ hg ci -m foo + $ cd .. + $ hg --config "inotify.pidfile=../hg2.pid" clone test test2 + updating to branch default + 1 files updated, 0 files merged, 0 files removed, 0 files unresolved + $ cat ../hg2.pid >> "$DAEMON_PIDS" + $ cd test2 + $ echo bar > bar + $ hg add + adding bar + $ hg ci -m bar + $ cd ../test + $ echo spam > spam + $ hg add + adding spam + $ hg ci -m spam + $ cd ../test2 + $ hg st -# abort, outstanding changes -hg fetch -q -hg st -cd .. +abort, outstanding changes - -echo % issue1719: inotify and mq + $ hg fetch -q + $ hg st + $ cd .. -echo "mq=" >> $HGRCPATH +issue1719: inotify and mq -hg init test-1719 -cd test-1719 + $ 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" +inserve -echo content > file -hg add file - -hg qnew -f test.patch - -hg status -hg qpop + $ 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 + popping test.patch + patch queue now empty -echo % st should not output anything -hg status - -hg qpush +st should not output anything -echo % st should not output anything -hg status + $ hg status + $ hg qpush + applying test.patch + now at: test.patch -hg qrefresh -hg status +st should not output anything + + $ hg status + $ hg qrefresh + $ hg status