hgext/inotify/linux/watcher.py
changeset 17424 e7cfe3587ea4
parent 10263 25e572394f5c
child 18054 b35e3364f94a
equal deleted inserted replaced
17406:fc14953e8e34 17424:e7cfe3587ea4
   280 
   280 
   281         If the optional addfilter parameter is not None, it must be a
   281         If the optional addfilter parameter is not None, it must be a
   282         callable that takes one parameter.  It will be called each time
   282         callable that takes one parameter.  It will be called each time
   283         a directory is about to be automatically watched.  If it returns
   283         a directory is about to be automatically watched.  If it returns
   284         True, the directory will be watched if it still exists,
   284         True, the directory will be watched if it still exists,
   285         otherwise, it will beb skipped.'''
   285         otherwise, it will be skipped.'''
   286 
   286 
   287         super(autowatcher, self).__init__()
   287         super(autowatcher, self).__init__()
   288         self.addfilter = addfilter
   288         self.addfilter = addfilter
   289 
   289 
   290     _dir_create_mask = inotify.IN_ISDIR | inotify.IN_CREATE
   290     _dir_create_mask = inotify.IN_ISDIR | inotify.IN_CREATE