diff --git a/hgext/sparse.py b/hgext/sparse.py --- a/hgext/sparse.py +++ b/hgext/sparse.py @@ -374,7 +374,7 @@ def debugsparse(ui, repo, **opts): if refresh: try: wlock = repo.wlock() - fcounts = map( + fcounts = pycompat.maplist( len, sparse.refreshwdir( repo, repo.status(), sparse.matcher(repo), force=force