comparison mercurial/dirstate.py @ 4951:6a7659a0c07c

dirstate: make filterfiles private
author Matt Mackall <mpm@selenic.com>
date Sat, 21 Jul 2007 16:02:09 -0500
parents 30847b8af7ca
children 8c294ee7047e
comparison
equal deleted inserted replaced
4950:30847b8af7ca 4951:6a7659a0c07c
272 st = self._opener("dirstate", "w", atomictemp=True) 272 st = self._opener("dirstate", "w", atomictemp=True)
273 st.write(cs.getvalue()) 273 st.write(cs.getvalue())
274 st.rename() 274 st.rename()
275 self._dirty = False 275 self._dirty = False
276 276
277 def filterfiles(self, files): 277 def _filter(self, files):
278 ret = {} 278 ret = {}
279 unknown = [] 279 unknown = []
280 280
281 for x in files: 281 for x in files:
282 if x == '.': 282 if x == '.':
343 if not files: 343 if not files:
344 files = ['.'] 344 files = ['.']
345 dc = self._map.copy() 345 dc = self._map.copy()
346 else: 346 else:
347 files = util.unique(files) 347 files = util.unique(files)
348 dc = self.filterfiles(files) 348 dc = self._filter(files)
349 349
350 def imatch(file_): 350 def imatch(file_):
351 if file_ not in dc and self._ignore(file_): 351 if file_ not in dc and self._ignore(file_):
352 return False 352 return False
353 return match(file_) 353 return match(file_)