# HG changeset patch # User Pierre-Yves David # Date 1617698275 -7200 # Node ID 6afb5ef1e776e4b263e5c7873728b9601bb4e206 # Parent eed3e2b79b48aa8a1cb2f0656c72126d715346b2 store: drop the `filefilter` argument to `_walk` No code use it anywhere. Dropping it will help replacing the function with something with a more precise semantic. Differential Revision: https://phab.mercurial-scm.org/D10314 diff -r eed3e2b79b48 -r 6afb5ef1e776 mercurial/store.py --- a/mercurial/store.py Tue Apr 06 10:37:47 2021 +0200 +++ b/mercurial/store.py Tue Apr 06 10:37:55 2021 +0200 @@ -411,7 +411,7 @@ def join(self, f): return self.path + b'/' + encodedir(f) - def _walk(self, relpath, recurse, filefilter=isrevlog): + def _walk(self, relpath, recurse): '''yields (unencoded, encoded, size)''' path = self.path if relpath: @@ -425,7 +425,7 @@ p = visit.pop() for f, kind, st in readdir(p, stat=True): fp = p + b'/' + f - if filefilter(f, kind, st): + if isrevlog(f, kind, st): n = util.pconvert(fp[striplen:]) l.append((decodedir(n), n, st.st_size)) elif kind == stat.S_IFDIR and recurse: