Show More
@@ -571,7 +571,7 b' def service(opts, parentfn=None, initfn=' | |||||
571 | if parentfn: |
|
571 | if parentfn: | |
572 | return parentfn(pid) |
|
572 | return parentfn(pid) | |
573 | else: |
|
573 | else: | |
574 |
|
|
574 | return | |
575 |
|
575 | |||
576 | if initfn: |
|
576 | if initfn: | |
577 | initfn() |
|
577 | initfn() |
@@ -2,7 +2,8 b'' | |||||
2 |
|
2 | |||
3 | "$TESTDIR/hghave" inotify || exit 80 |
|
3 | "$TESTDIR/hghave" inotify || exit 80 | |
4 |
|
4 | |||
5 | hg init |
|
5 | hg init repo1 | |
|
6 | cd repo1 | |||
6 |
|
7 | |||
7 | touch a b c d e |
|
8 | touch a b c d e | |
8 | mkdir dir |
|
9 | mkdir dir | |
@@ -10,10 +11,18 b' mkdir dir/bar' | |||||
10 | touch dir/x dir/y dir/bar/foo |
|
11 | touch dir/x dir/y dir/bar/foo | |
11 |
|
12 | |||
12 | hg ci -Am m |
|
13 | hg ci -Am m | |
|
14 | cd .. | |||
|
15 | hg clone repo1 repo2 | |||
13 |
|
16 | |||
14 | echo "[extensions]" >> $HGRCPATH |
|
17 | echo "[extensions]" >> $HGRCPATH | |
15 | echo "inotify=" >> $HGRCPATH |
|
18 | echo "inotify=" >> $HGRCPATH | |
16 |
|
19 | |||
|
20 | cd repo2 | |||
|
21 | echo b >> a | |||
|
22 | # check that daemon started automatically works correctly | |||
|
23 | hg status | |||
|
24 | ||||
|
25 | cd ../repo1 | |||
17 | echo % inserve |
|
26 | echo % inserve | |
18 | hg inserve -d --pid-file=hg.pid |
|
27 | hg inserve -d --pid-file=hg.pid | |
19 | cat hg.pid >> "$DAEMON_PIDS" |
|
28 | cat hg.pid >> "$DAEMON_PIDS" |
@@ -1,5 +1,6 b'' | |||||
1 | % fail |
|
1 | % fail | |
2 | abort: could not start server: File exists |
|
2 | abort: could not start server: File exists | |
|
3 | could not talk to new inotify server: No such file or directory | |||
3 | abort: could not start server: File exists |
|
4 | abort: could not start server: File exists | |
4 | % inserve |
|
5 | % inserve | |
5 | % status |
|
6 | % status |
General Comments 0
You need to be logged in to leave comments.
Login now