inotify and FSEvents...

Alain Leufroy alain.leufroy at logilab.fr
Mon May 14 05:56:11 CDT 2012


On Mon, 14 May 2012, James Lan wrote:


>
> Does this mean that there will be a cross platform inotify ext shipped with 2.3?

There is a funny project like that: http://pypi.python.org/pypi/watchdog
>
> Regards,
> James Lan
>
> On May 12, 2012 9:17 PM, "Jason Harris" <jason at jasonfharris.com> wrote:
>       In the 2.3 Sprint we are talking about underlying notification. In OSX notification is through FSEvents:
>
>       Couple of points with FSEvent watching:
>       - Updates within a single directory are coalesced.  But all touched directories are
>       reported.  (Mads was correct here.)
>       - It looks like you can create FSEvents watchers which will report all changes to files as
>       well:  http://developer.apple.com/library/mac/#documentation/Darwin/Reference/FSEvents_Ref/FSEvents_h/index.html#//apple_ref/c/tag/FSEventStreamCreateFlags
>       This flag is unfortunately new to 10.7 and Mercurial should likely still support 10.6 (Snow Leopard
>       if not 10.5 Leopard....)
>
>       For info on FSEvents see:
>        http://arstechnica.com/apple/2007/10/mac-os-x-10-5/7/
>        http://developer.apple.com/library/mac/#documentation/Darwin/Reference/FSEvents_Ref/FSEvents_h/
>
>       - Spotlight works by having a fsevents daemon record to a compressed log file which
>        directories are changed.  Then spotlight will examine this log at it's leisure to figure
>        out what it needs to rescan...
>       _______________________________________________
>       Mercurial-devel mailing list
>       Mercurial-devel at selenic.com
>       http://selenic.com/mailman/listinfo/mercurial-devel
>
>
>

-- 
Alain Leufroy
LOGILAB, Paris (France)
http://www.logilab.fr
Informatique scientifique & gestion de connaissances


More information about the Mercurial-devel mailing list