comparison tests/test-inotify-dirty-dirstate.t @ 12452:f727db60abb4

tests: unify test-inotify-dirty-dirstate
author Matt Mackall <mpm@selenic.com>
date Sun, 26 Sep 2010 13:43:21 -0500
parents tests/test-inotify-dirty-dirstate@97eda2133a9b
children ffb5c09ba822
comparison
equal deleted inserted replaced
12451:17ebf11bff81 12452:f727db60abb4
1 issues when status queries are issued when dirstate is dirty
2
3 $ "$TESTDIR/hghave" inotify || exit 80
4 $ echo "[extensions]" >> $HGRCPATH
5 $ echo "inotify=" >> $HGRCPATH
6 $ echo "fetch=" >> $HGRCPATH
7
8 issue1810: inotify and fetch
9
10 $ mkdir test; cd test
11 $ hg init
12 $ hg inserve -d --pid-file=../hg.pid
13 $ cat ../hg.pid >> "$DAEMON_PIDS"
14 $ echo foo > foo
15 $ hg add
16 adding foo
17 $ hg ci -m foo
18 $ cd ..
19 $ hg --config "inotify.pidfile=../hg2.pid" clone test test2
20 updating to branch default
21 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
22 $ cat ../hg2.pid >> "$DAEMON_PIDS"
23 $ cd test2
24 $ echo bar > bar
25 $ hg add
26 adding bar
27 $ hg ci -m bar
28 $ cd ../test
29 $ echo spam > spam
30 $ hg add
31 adding spam
32 $ hg ci -m spam
33 $ cd ../test2
34 $ hg st
35
36 abort, outstanding changes
37
38 $ hg fetch -q
39 $ hg st
40 $ cd ..
41
42 issue1719: inotify and mq
43
44 $ echo "mq=" >> $HGRCPATH
45 $ hg init test-1719
46 $ cd test-1719
47
48 inserve
49
50 $ hg inserve -d --pid-file=../hg-test-1719.pid
51 $ cat ../hg-test-1719.pid >> "$DAEMON_PIDS"
52 $ echo content > file
53 $ hg add file
54 $ hg qnew -f test.patch
55 $ hg status
56 $ hg qpop
57 popping test.patch
58 patch queue now empty
59
60 st should not output anything
61
62 $ hg status
63 $ hg qpush
64 applying test.patch
65 now at: test.patch
66
67 st should not output anything
68
69 $ hg status
70 $ hg qrefresh
71 $ hg status