diff hgext/inotify/client.py @ 19143:3cb9468535bd

match: make explicitdir and traversedir None by default With this, extensions can easily tell when traversedir and/or explicitdir don't need to be called.
author Siddharth Agarwal <sid0@fb.com>
date Fri, 03 May 2013 14:41:58 -0700
parents 10103caea69d
children
line wrap: on
line diff
--- a/hgext/inotify/client.py	Fri May 03 14:39:28 2013 -0700
+++ b/hgext/inotify/client.py	Fri May 03 14:41:58 2013 -0700
@@ -159,7 +159,8 @@
             vdirs = cs.read(nbytes)
             if vdirs:
                 for vdir in vdirs.split('\0'):
-                    match.explicitdir(vdir)
+                    if match.explicitdir:
+                        match.explicitdir(vdir)
 
         return results