Mercurial > public > mercurial-scm > hg-stable
diff mercurial/manifest.py @ 41041:3913223417ea
manifest: accept narrowmatch into constructor instead of getting from repo
The manifest should ideally not know at all about the repo, so this is
just a little step towards cleaning that up.
Differential Revision: https://phab.mercurial-scm.org/D5469
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Mon, 03 Dec 2018 22:22:23 -0800 |
parents | 6a917075535a |
children | 2c3f69855ce8 |
line wrap: on
line diff
--- a/mercurial/manifest.py Sat Dec 22 00:05:39 2018 -0500 +++ b/mercurial/manifest.py Mon Dec 03 22:22:23 2018 -0800 @@ -1636,7 +1636,7 @@ of the list of files in the given commit. Consumers of the output of this class do not care about the implementation details of the actual manifests they receive (i.e. tree or flat or lazily loaded, etc).""" - def __init__(self, opener, repo, rootstore): + def __init__(self, opener, repo, rootstore, narrowmatch): usetreemanifest = False cachesize = 4 @@ -1649,7 +1649,7 @@ self._rootstore = rootstore self._rootstore._setupmanifestcachehooks(repo) - self._narrowmatch = repo.narrowmatch() + self._narrowmatch = narrowmatch # A cache of the manifestctx or treemanifestctx for each directory self._dirmancache = {}