dirstate: replace clear()
authorMatt Mackall <mpm@selenic.com>
Mon, 18 Jun 2007 13:24:34 -0500
changeset 4608 220211b88656
parent 4607 49dcac6ede26
child 4609 b43f17691ae6
dirstate: replace clear()
mercurial/dirstate.py
--- a/mercurial/dirstate.py	Mon Jun 18 13:24:33 2007 -0500
+++ b/mercurial/dirstate.py	Mon Jun 18 13:24:34 2007 -0500
@@ -319,14 +319,8 @@
                 self.ui.warn(_("not in dirstate: %s!\n") % f)
                 pass
 
-    def clear(self):
-        self.map = {}
-        self.copymap = {}
-        self.dirs = None
-        self.markdirty()
-
     def rebuild(self, parent, files):
-        self.clear()
+        self.reload()
         for f in files:
             if files.execf(f):
                 self.map[f] = ('n', 0777, -1, 0)