diff mercurial/dirstate.py @ 4614:3a645af7fb76

localrepo and dirstate: rename reload to invalidate We want to avoid actually reloading if possible.
author Matt Mackall <mpm@selenic.com>
date Mon, 18 Jun 2007 13:24:34 -0500
parents 17ee7407097f
children a8be3c875988
line wrap: on
line diff
--- a/mercurial/dirstate.py
+++ b/mercurial/dirstate.py
@@ -149,7 +149,7 @@ class dirstate(object):
             dmap[f] = e[:4]
             pos = newpos
 
-    def reload(self):
+    def invalidate(self):
         for a in "map copymap _branch pl dirs _ignore".split():
             if hasattr(self, a):
                 self.__delattr__(a)
@@ -228,7 +228,7 @@ class dirstate(object):
                 pass
 
     def rebuild(self, parent, files):
-        self.reload()
+        self.invalidate()
         for f in files:
             if files.execf(f):
                 self.map[f] = ('n', 0777, -1, 0)