# HG changeset patch # User Pierre-Yves David # Date 2021-04-06 08:37:55 # 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 --git a/mercurial/store.py b/mercurial/store.py --- a/mercurial/store.py +++ b/mercurial/store.py @@ -411,7 +411,7 @@ class basicstore(object): 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 @@ class basicstore(object): 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: