Patchwork [5,of,8] inotify: call match.explicitdir

login
register
mail settings
Submitter Siddharth Agarwal
Date May 3, 2013, 10:05 p.m.
Message ID <7a1c5a9314866b55d513.1367618746@sid0x220>
Download mbox | patch
Permalink /patch/1550/
State Accepted
Commit 10103caea69d82cec8566bf59a4601bc841c2e8a
Headers show

Comments

Siddharth Agarwal - May 3, 2013, 10:05 p.m.
# HG changeset patch
# User Siddharth Agarwal <sid0@fb.com>
# Date 1367209711 25200
#      Sun Apr 28 21:28:31 2013 -0700
# Node ID 7a1c5a9314866b55d51306182cae047d66c74151
# Parent  666d434c93e57741c306d75e8711e246b9794631
inotify: call match.explicitdir

inotify only returns explicit directories matched.

Patch

diff -r 666d434c93e5 -r 7a1c5a931486 hgext/inotify/client.py
--- a/hgext/inotify/client.py	Sun Apr 28 21:27:57 2013 -0700
+++ b/hgext/inotify/client.py	Sun Apr 28 21:28:31 2013 -0700
@@ -159,7 +159,7 @@  class client(object):
             vdirs = cs.read(nbytes)
             if vdirs:
                 for vdir in vdirs.split('\0'):
-                    match.dir(vdir)
+                    match.explicitdir(vdir)
 
         return results