equal
deleted
inserted
replaced
1 #!/bin/sh |
1 #!/bin/sh |
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 |
9 mkdir dir/bar |
10 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" |
20 |
29 |
21 # let the daemon finish its stuff |
30 # let the daemon finish its stuff |