tests/test-inotify
branchstable
changeset 9896 2c2f7593ffc4
parent 9854 95e1867f765b
child 9897 97eda2133a9b
equal deleted inserted replaced
9894:b755a886e8b7 9896:2c2f7593ffc4
     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