comparison mercurial/scmutil.py @ 17845:408ded42c5ec stable

scmutil: abstract out mustaudit delegation
author Bryan O'Sullivan <bryano@fb.com>
date Mon, 22 Oct 2012 11:59:11 -0700
parents 361ab1e2086f
children f42cf30873dc
comparison
equal deleted inserted replaced
17844:b32e55e6c3c7 17845:408ded42c5ec
345 return os.path.join(self.base, path) 345 return os.path.join(self.base, path)
346 else: 346 else:
347 return self.base 347 return self.base
348 348
349 opener = vfs 349 opener = vfs
350
351 class auditvfs(object):
352 def __init__(self, vfs):
353 self.vfs = vfs
354
355 def _getmustaudit(self):
356 return self.vfs.mustaudit
357
358 def _setmustaudit(self, onoff):
359 self.vfs.mustaudit = onoff
360
361 mustaudit = property(_getmustaudit, _setmustaudit)
350 362
351 class filtervfs(abstractvfs): 363 class filtervfs(abstractvfs):
352 '''Wrapper vfs for filtering filenames with a function.''' 364 '''Wrapper vfs for filtering filenames with a function.'''
353 365
354 def __init__(self, opener, filter): 366 def __init__(self, opener, filter):