[issue1371] inotify dies upon removing a file

Alexander Solovyov mercurial-bugs at selenic.com
Fri Oct 31 04:14:11 CDT 2008


New submission from Alexander Solovyov <piranha at piranha.org.ua>:

Deleting a file and then requesting status of repo leads to error:

piranha at gtv ~>hg init test
piranha at gtv ~>cd test
piranha at gtv ~/test>echo "test" > a
piranha at gtv ~/test>hg add a
piranha at gtv ~/test>hg ci -m "initial"
piranha at gtv ~/test>hg rm a
piranha at gtv ~/test>hg st
could not start inotify server: [Errno 2] No such file or directory:
'/home/piranha/test/a'
R a

Though if you run hg inserve by hands in separate console it will die upon
executing "hg rm a":

piranha at gtv ~/test>hg inserve --debug
watching ''
status: 'a' None -> l
watching directories under '/home/piranha/test'
watching '.hg'
finished setup
polling: no timeout
answering query for 'almrx!c'
polling: no timeout
start readable: 160 bytes
+0.001 below threshold - unhooking
polling: 250ms timeout
+0.250 hooking back up with 288 bytes readable
+0.000 reading 9 events
+0.000 event: created tmp0nSBfN
+0.000 event: deleted tmp0nSBfN
+0.000 event: created PKlP0l
+0.000 event: modified PKlP0l
+0.000 event: deleted PKlP0l
+0.000 event: deleted .hg/wlock
+0.000 event: deleted .hg/wlock
+0.000 event: deleted a
+0.000 event: deleted .hg/wlock
+0.000 processing 9 deferred events as 4
+0.000 dirstate reload
+0.000 processing 9 deferred events as 4
status: 'a' l -> !
watching ''
abort: No such file or directory: /home/piranha/test/a

----------
messages: 7728
nosy: piranha
priority: bug
status: unread
title: inotify dies upon removing a file
topic: inotify

____________________________________________________
Mercurial issue tracker <mercurial-bugs at selenic.com>
<http://www.selenic.com/mercurial/bts/issue1371>
____________________________________________________



More information about the Mercurial-devel mailing list