Mercurial > hg
changeset 4608:220211b88656
dirstate: replace clear()
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 18 Jun 2007 13:24:34 -0500 |
parents | 49dcac6ede26 |
children | b43f17691ae6 |
files | mercurial/dirstate.py |
diffstat | 1 files changed, 1 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- 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)