Show More
@@ -1,71 +1,71 b'' | |||||
1 | #!/bin/sh |
|
1 | issues when status queries are issued when dirstate is dirty | |
2 |
|
||||
3 | # issues when status queries are issued when dirstate is dirty |
|
|||
4 |
|
||||
5 | "$TESTDIR/hghave" inotify || exit 80 |
|
|||
6 |
|
2 | |||
7 | echo "[extensions]" >> $HGRCPATH |
|
3 | $ "$TESTDIR/hghave" inotify || exit 80 | |
8 |
echo " |
|
4 | $ echo "[extensions]" >> $HGRCPATH | |
9 |
echo " |
|
5 | $ echo "inotify=" >> $HGRCPATH | |
|
6 | $ echo "fetch=" >> $HGRCPATH | |||
10 |
|
7 | |||
11 |
|
|
8 | issue1810: inotify and fetch | |
12 | mkdir test; cd test |
|
|||
13 | hg init |
|
|||
14 | hg inserve -d --pid-file=../hg.pid |
|
|||
15 | cat ../hg.pid >> "$DAEMON_PIDS" |
|
|||
16 |
|
9 | |||
17 | echo foo > foo |
|
10 | $ mkdir test; cd test | |
18 | hg add |
|
11 | $ hg init | |
19 | hg ci -m foo |
|
12 | $ hg inserve -d --pid-file=../hg.pid | |
20 |
|
13 | $ cat ../hg.pid >> "$DAEMON_PIDS" | ||
21 | cd .. |
|
14 | $ echo foo > foo | |
22 |
|
15 | $ hg add | ||
23 | hg --config "inotify.pidfile=../hg2.pid" clone test test2 |
|
16 | adding foo | |
24 | cat ../hg2.pid >> "$DAEMON_PIDS" |
|
17 | $ hg ci -m foo | |
25 |
|
18 | $ cd .. | ||
26 | cd test2 |
|
19 | $ hg --config "inotify.pidfile=../hg2.pid" clone test test2 | |
27 | echo bar > bar |
|
20 | updating to branch default | |
28 | hg add |
|
21 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
29 | hg ci -m bar |
|
22 | $ cat ../hg2.pid >> "$DAEMON_PIDS" | |
30 |
cd |
|
23 | $ cd test2 | |
31 | echo spam > spam |
|
24 | $ echo bar > bar | |
32 | hg add |
|
25 | $ hg add | |
33 | hg ci -m spam |
|
26 | adding bar | |
34 | cd ../test2 |
|
27 | $ hg ci -m bar | |
35 | hg st |
|
28 | $ cd ../test | |
|
29 | $ echo spam > spam | |||
|
30 | $ hg add | |||
|
31 | adding spam | |||
|
32 | $ hg ci -m spam | |||
|
33 | $ cd ../test2 | |||
|
34 | $ hg st | |||
36 |
|
35 | |||
37 |
|
|
36 | abort, outstanding changes | |
38 | hg fetch -q |
|
|||
39 | hg st |
|
|||
40 | cd .. |
|
|||
41 |
|
37 | |||
42 |
|
38 | $ hg fetch -q | ||
43 | echo % issue1719: inotify and mq |
|
39 | $ hg st | |
|
40 | $ cd .. | |||
44 |
|
41 | |||
45 | echo "mq=" >> $HGRCPATH |
|
42 | issue1719: inotify and mq | |
46 |
|
43 | |||
47 | hg init test-1719 |
|
44 | $ echo "mq=" >> $HGRCPATH | |
48 |
|
|
45 | $ hg init test-1719 | |
|
46 | $ cd test-1719 | |||
49 |
|
47 | |||
50 |
|
|
48 | inserve | |
51 | hg inserve -d --pid-file=../hg-test-1719.pid |
|
|||
52 | cat ../hg-test-1719.pid >> "$DAEMON_PIDS" |
|
|||
53 |
|
49 | |||
54 | echo content > file |
|
50 | $ hg inserve -d --pid-file=../hg-test-1719.pid | |
55 | hg add file |
|
51 | $ cat ../hg-test-1719.pid >> "$DAEMON_PIDS" | |
56 |
|
52 | $ echo content > file | ||
57 | hg qnew -f test.patch |
|
53 | $ hg add file | |
58 |
|
54 | $ hg qnew -f test.patch | ||
59 | hg status |
|
55 | $ hg status | |
60 | hg qpop |
|
56 | $ hg qpop | |
|
57 | popping test.patch | |||
|
58 | patch queue now empty | |||
61 |
|
59 | |||
62 |
|
|
60 | st should not output anything | |
63 | hg status |
|
|||
64 |
|
||||
65 | hg qpush |
|
|||
66 |
|
61 | |||
67 | echo % st should not output anything |
|
62 | $ hg status | |
68 | hg status |
|
63 | $ hg qpush | |
|
64 | applying test.patch | |||
|
65 | now at: test.patch | |||
69 |
|
66 | |||
70 | hg qrefresh |
|
67 | st should not output anything | |
71 | hg status |
|
68 | ||
|
69 | $ hg status | |||
|
70 | $ hg qrefresh | |||
|
71 | $ hg status |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed |
General Comments 0
You need to be logged in to leave comments.
Login now