remotefilelog: remove obsolete filtering of treemanifest directories
authorMartin von Zweigbergk <martinvonz@google.com>
Fri, 14 Jun 2019 13:50:06 -0700
changeset 42472 d768ca427249
parent 42471 c7308b3bc189
child 42473 307f67d4aee3
remotefilelog: remove obsolete filtering of treemanifest directories I think this has been obsolete since 2cf18f46a1ce (narrow: only walk files within narrowspec also for committed revisions, 2018-09-28). Differential Revision: https://phab.mercurial-scm.org/D6531
hgext/remotefilelog/__init__.py
--- a/hgext/remotefilelog/__init__.py	Fri Jun 14 18:27:50 2019 +0300
+++ b/hgext/remotefilelog/__init__.py	Fri Jun 14 13:50:06 2019 -0700
@@ -990,9 +990,6 @@
             mf = ctx.manifest()
             sparsematch = repo.maybesparsematch(ctx.rev())
             for path in ctx.walk(match):
-                if path.endswith('/'):
-                    # Tree manifest that's being excluded as part of narrow
-                    continue
                 if (not sparsematch or sparsematch(path)) and path in mf:
                     allfiles.append((path, hex(mf[path])))
         repo.fileservice.prefetch(allfiles)