changeset 50128 | 2f60cd6442fd |
parent 50123 | 4e95341c89aa |
child 50129 | 3c6546b149ed |
--- a/mercurial/dirstate.py Wed Feb 22 01:04:55 2023 +0100 +++ b/mercurial/dirstate.py Wed Feb 22 01:08:25 2023 +0100 @@ -190,6 +190,12 @@ # raises an exception). self._cwd + def refresh(self): + if '_branch' in vars(self): + del self._branch + if '_map' in vars(self) and self._map.may_need_refresh(): + self.invalidate() + def prefetch_parents(self): """make sure the parents are loaded