comparison tests/test-inotify @ 7350:c5dbe86b0fee

inotify: fix replacing a folder with a file (issue1375)
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Tue, 11 Nov 2008 23:16:59 +0100
parents 6f4a253f2a64
children 5ab0abf27dd9
comparison
equal deleted inserted replaced
7349:f711b8e0d2b3 7350:c5dbe86b0fee
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
16 19
17 echo % inserve 20 echo % inserve
18 hg inserve -d --pid-file=hg.pid 21 hg inserve -d --pid-file=hg.pid
19 cat hg.pid >> "$DAEMON_PIDS" 22 cat hg.pid >> "$DAEMON_PIDS"
20 23
25 echo % clean 28 echo % clean
26 hg status -c 29 hg status -c
27 echo % all 30 echo % all
28 hg status -A 31 hg status -A
29 32
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
30 kill `cat hg.pid` 56 kill `cat hg.pid`
57