Mercurial > public > mercurial-scm > hg
diff mercurial/manifest.py @ 36095:59adb3051718
manifest: clean up dirlog() to take a d parameter to avoid shadowing dir()
Differential Revision: https://phab.mercurial-scm.org/D2187
author | Augie Fackler <augie@google.com> |
---|---|
date | Mon, 12 Feb 2018 14:01:44 -0500 |
parents | fbf1a5d680ea |
children | b42c47b8c9d4 |
line wrap: on
line diff
--- a/mercurial/manifest.py Mon Feb 12 14:00:02 2018 -0500 +++ b/mercurial/manifest.py Mon Feb 12 14:01:44 2018 -0500 @@ -1245,15 +1245,15 @@ self._fulltextcache.clear() self._dirlogcache = {'': self} - def dirlog(self, dir): - if dir: + def dirlog(self, d): + if d: assert self._treeondisk - if dir not in self._dirlogcache: - mfrevlog = manifestrevlog(self.opener, dir, + if d not in self._dirlogcache: + mfrevlog = manifestrevlog(self.opener, d, self._dirlogcache, treemanifest=self._treeondisk) - self._dirlogcache[dir] = mfrevlog - return self._dirlogcache[dir] + self._dirlogcache[d] = mfrevlog + return self._dirlogcache[d] def add(self, m, transaction, link, p1, p2, added, removed, readtree=None): if (p1 in self.fulltextcache and util.safehasattr(m, 'fastdelta')