Mercurial > hg > mercurial-source
changeset 33465:e696f597d02f
dirstate: add docstring for invalidate
This always confuses me, and we already have a docstring on
localrepo.invalidatedirstate.
author | Siddharth Agarwal <sid0@fb.com> |
---|---|
date | Sun, 04 Jun 2017 16:08:50 -0700 |
parents | d677bd21ee98 |
children | 9f840d99054c |
files | mercurial/dirstate.py |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/dirstate.py +++ b/mercurial/dirstate.py @@ -470,6 +470,12 @@ self._pl = p def invalidate(self): + '''Causes the next access to reread the dirstate. + + This is different from localrepo.invalidatedirstate() because it always + rereads the dirstate. Use localrepo.invalidatedirstate() if you want to + check whether the dirstate has changed before rereading it.''' + for a in ("_map", "_copymap", "_filefoldmap", "_dirfoldmap", "_branch", "_pl", "_dirs", "_ignore", "_nonnormalset", "_otherparentset"):