comparison 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
comparison
equal deleted inserted replaced
19142:c3d3e4d75ec3 19143:3cb9468535bd
157 if names: 157 if names:
158 nbytes = resphdr[-1] 158 nbytes = resphdr[-1]
159 vdirs = cs.read(nbytes) 159 vdirs = cs.read(nbytes)
160 if vdirs: 160 if vdirs:
161 for vdir in vdirs.split('\0'): 161 for vdir in vdirs.split('\0'):
162 match.explicitdir(vdir) 162 if match.explicitdir:
163 match.explicitdir(vdir)
163 164
164 return results 165 return results
165 166
166 @start_server 167 @start_server
167 def debugquery(self): 168 def debugquery(self):