comparison tests/test-inotify @ 7351:5ab0abf27dd9

Backed out changeset c5dbe86b0fee (issue1375)
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Wed, 12 Nov 2008 09:08:43 +0100
parents c5dbe86b0fee
children 92c952c4470c
comparison
equal deleted inserted replaced
7350:c5dbe86b0fee 7351:5ab0abf27dd9
11 11
12 hg ci -Am m 12 hg ci -Am m
13 13
14 echo "[extensions]" >> $HGRCPATH 14 echo "[extensions]" >> $HGRCPATH
15 echo "inotify=" >> $HGRCPATH 15 echo "inotify=" >> $HGRCPATH
16 echo "[inotify]" >> $HGRCPATH
17 echo "debug=1" >> $HGRCPATH
18 echo "log=/tmp/inot.log" >> $HGRCPATH
19 16
20 echo % inserve 17 echo % inserve
21 hg inserve -d --pid-file=hg.pid 18 hg inserve -d --pid-file=hg.pid
22 cat hg.pid >> "$DAEMON_PIDS" 19 cat hg.pid >> "$DAEMON_PIDS"
23 20
28 echo % clean 25 echo % clean
29 hg status -c 26 hg status -c
30 echo % all 27 echo % all
31 hg status -A 28 hg status -A
32 29
33 #issue 1375
34 #Testing that we can remove a folder and then add a file with the same name
35
36 mkdir h f g
37 echo h > h/h
38 echo f > f/f
39 echo g > g/g
40
41 hg ci -Am t
42 sleep 1
43 hg rm h
44 hg rm f
45 sleep 1
46 echo h >h
47 ln -s g f
48
49 hg add h
50 sleep 1
51 hg add f
52
53 hg status
54 hg ci -m0
55 hg status
56 kill `cat hg.pid` 30 kill `cat hg.pid`
57