# HG changeset patch # User Adrian Buehlmann # Date 2011-03-23 10:22:29 # Node ID 2d53cefb44e3cc8c9d4bedc95894ae173d7b7773 # Parent 7abab875e6471b1d26a6b0f13c31c6fdda633b23 dirstate: reset _lastnormal and _lastnormaltime on write, invalidate, and clear diff --git a/mercurial/dirstate.py b/mercurial/dirstate.py --- a/mercurial/dirstate.py +++ b/mercurial/dirstate.py @@ -238,6 +238,8 @@ class dirstate(object): "_ignore"): if a in self.__dict__: delattr(self, a) + self._lastnormal = set() + self._lastnormaltime = None self._dirty = False def copy(self, source, dest): @@ -414,6 +416,8 @@ class dirstate(object): delattr(self, "_dirs") self._copymap = {} self._pl = [nullid, nullid] + self._lastnormal = set() + self._lastnormaltime = None self._dirty = True def rebuild(self, parent, files): @@ -461,6 +465,8 @@ class dirstate(object): write(f) st.write(cs.getvalue()) st.rename() + self._lastnormal = set() + self._lastnormaltime = None self._dirty = self._dirtypl = False def _dirignore(self, f):