mercurial/manifest.py
changeset 41038 3913223417ea
parent 40430 6a917075535a
child 41153 2c3f69855ce8
equal deleted inserted replaced
41037:2eeef8e577ac 41038:3913223417ea
  1634 
  1634 
  1635     In this situation, 'manifest' refers to the abstract concept of a snapshot
  1635     In this situation, 'manifest' refers to the abstract concept of a snapshot
  1636     of the list of files in the given commit. Consumers of the output of this
  1636     of the list of files in the given commit. Consumers of the output of this
  1637     class do not care about the implementation details of the actual manifests
  1637     class do not care about the implementation details of the actual manifests
  1638     they receive (i.e. tree or flat or lazily loaded, etc)."""
  1638     they receive (i.e. tree or flat or lazily loaded, etc)."""
  1639     def __init__(self, opener, repo, rootstore):
  1639     def __init__(self, opener, repo, rootstore, narrowmatch):
  1640         usetreemanifest = False
  1640         usetreemanifest = False
  1641         cachesize = 4
  1641         cachesize = 4
  1642 
  1642 
  1643         opts = getattr(opener, 'options', None)
  1643         opts = getattr(opener, 'options', None)
  1644         if opts is not None:
  1644         if opts is not None:
  1647 
  1647 
  1648         self._treemanifests = usetreemanifest
  1648         self._treemanifests = usetreemanifest
  1649 
  1649 
  1650         self._rootstore = rootstore
  1650         self._rootstore = rootstore
  1651         self._rootstore._setupmanifestcachehooks(repo)
  1651         self._rootstore._setupmanifestcachehooks(repo)
  1652         self._narrowmatch = repo.narrowmatch()
  1652         self._narrowmatch = narrowmatch
  1653 
  1653 
  1654         # A cache of the manifestctx or treemanifestctx for each directory
  1654         # A cache of the manifestctx or treemanifestctx for each directory
  1655         self._dirmancache = {}
  1655         self._dirmancache = {}
  1656         self._dirmancache[''] = util.lrucachedict(cachesize)
  1656         self._dirmancache[''] = util.lrucachedict(cachesize)
  1657 
  1657