Mercurial > hg
comparison hgext/inotify/client.py @ 8555:3e09bc5fee12
inotify: introduce debuginotify, which lists which paths are under watch
author | Nicolas Dumazet <nicdumz.commits@gmail.com> |
---|---|
date | Wed, 22 Apr 2009 00:37:35 +0900 |
parents | e387ecd7a6ed |
children | 5d8021ac0e19 |
comparison
equal
deleted
inserted
replaced
8554:47d7347484f5 | 8555:3e09bc5fee12 |
---|---|
140 if nbytes: | 140 if nbytes: |
141 names = cs.read(nbytes) | 141 names = cs.read(nbytes) |
142 if names: | 142 if names: |
143 return filter(match, names.split('\0')) | 143 return filter(match, names.split('\0')) |
144 return [] | 144 return [] |
145 return map(readnames, resphdr) | |
145 | 146 |
146 return map(readnames, resphdr) | 147 @start_server |
148 def debugquery(self): | |
149 cs, resphdr = self.query('DBUG', '') | |
150 | |
151 nbytes = resphdr[0] | |
152 names = cs.read(nbytes) | |
153 return names.split('\0') |