Mercurial > public > mercurial-scm > hg-stable
diff mercurial/dirstate.py @ 47357:3b9914b28133
dirstate-v2: Add --dirs to debugdirstate command
`hg debugdirstate --dirs` also shows information stored in the dirstate
(for `read_dir` caching) about directories.
Differential Revision: https://phab.mercurial-scm.org/D10828
author | Simon Sapin <simon.sapin@octobus.net> |
---|---|
date | Mon, 31 May 2021 19:54:41 +0200 |
parents | 04d1f17f49e7 |
children | eb416759af7e |
line wrap: on
line diff
--- a/mercurial/dirstate.py Mon May 31 18:35:44 2021 +0200 +++ b/mercurial/dirstate.py Mon May 31 19:54:41 2021 +0200 @@ -315,6 +315,9 @@ iteritems = items + def directories(self): + return self._map.directories() + def parents(self): return [self._validate(p) for p in self._pl] @@ -1479,6 +1482,10 @@ self._map return self.copymap + def directories(self): + # Rust / dirstate-v2 only + return [] + def clear(self): self._map.clear() self.copymap.clear() @@ -1806,6 +1813,9 @@ def copymap(self): return self._rustmap.copymap() + def directories(self): + return self._rustmap.directories() + def preload(self): self._rustmap