Commits

Jussi Hagman committed 9341d79

Watcher latency to 1, still buggy

Comments (0)

Files changed (1)

Source/HgRepository.m

         _changedPaths = [NSMutableSet set];
         _watcher = [[MYDirectoryWatcher alloc] initWithDirectory: _absolutePath
                                                         target: self action: @selector(_dirChanged:)];
-        _watcher.latency = 5;
+        _watcher.latency = 1;
         if( ! [_watcher start] )
             Warn(@"HgRepository: Couldn't start MYDirectoryWatcher on %@",_absolutePath);
         Log(@"Opened %@", self);
 
 - (void) _dirChanged: (MYDirectoryEvent*)event
 {
+	NSLog(@"DirChanged '%@'", event.relativePath );
+	
     NSString *path=event.relativePath;
     if( [path hasPrefix: @".hg/"] )
         path = @".hg";