--- a/hgext/sparse.py Thu Jan 05 17:38:14 2023 -0500
+++ b/hgext/sparse.py Thu Jan 05 19:47:35 2023 -0500
@@ -374,7 +374,7 @@
if refresh:
try:
wlock = repo.wlock()
- fcounts = map(
+ fcounts = pycompat.maplist(
len,
sparse.refreshwdir(
repo, repo.status(), sparse.matcher(repo), force=force