Mercurial > hg-stable
changeset 12706:9ca08fbb750a
localrepo: have _loadfilter return the loaded filter patterns
author | Nicolas Dumazet <nicdumz.commits@gmail.com> |
---|---|
date | Sun, 10 Oct 2010 19:07:58 +0200 |
parents | d734b3470138 |
children | 2216ab103ea8 |
files | mercurial/localrepo.py |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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)