Mercurial > public > mercurial-scm > hg
comparison mercurial/scmutil.py @ 14404:69b60edfd76c
opener: add audit function
author | Adrian Buehlmann <adrian@cadifra.com> |
---|---|
date | Sat, 21 May 2011 23:13:59 +0200 |
parents | 3438417a6657 |
children | 5f6090e559fa |
comparison
equal
deleted
inserted
replaced
14403:2c9f5897d4b7 | 14404:69b60edfd76c |
---|---|
253 else: | 253 else: |
254 f = self(dst, "w") | 254 f = self(dst, "w") |
255 f.write(src) | 255 f.write(src) |
256 f.close() | 256 f.close() |
257 self._fixfilemode(dst) | 257 self._fixfilemode(dst) |
258 | |
259 def audit(self, path): | |
260 self.auditor(path) | |
258 | 261 |
259 class filteropener(abstractopener): | 262 class filteropener(abstractopener): |
260 '''Wrapper opener for filtering filenames with a function.''' | 263 '''Wrapper opener for filtering filenames with a function.''' |
261 | 264 |
262 def __init__(self, opener, filter): | 265 def __init__(self, opener, filter): |