--- a/mercurial/localrepo.py Mon Oct 11 13:26:29 2010 -0500
+++ b/mercurial/localrepo.py Sun Oct 10 19:07:58 2010 +0200
@@ -586,11 +586,10 @@
fn = lambda s, c, **kwargs: oldfn(s, c)
l.append((mf, fn, params))
self.filterpats[filter] = l
+ return self.filterpats[filter]
def _filter(self, filter, filename, data):
- self._loadfilter(filter)
-
- for mf, fn, cmd in self.filterpats[filter]:
+ for mf, fn, cmd in self._loadfilter[filter]:
if mf(filename):
self.ui.debug("filtering %s through %s\n" % (filename, cmd))
data = fn(data, cmd, ui=self.ui, repo=self, filename=filename)