# HG changeset patch # User Matt Mackall # Date 1185051729 18000 # Node ID 8b6efc8fc23cac0c9e80f593b5b89166fdfc30bd # Parent fd96bc61a18b94cec4b7e59a17093a06ef57cb18 dirstate: add doesn't need to call stat diff --git a/mercurial/dirstate.py b/mercurial/dirstate.py --- a/mercurial/dirstate.py +++ b/mercurial/dirstate.py @@ -217,8 +217,7 @@ class dirstate(object): 'mark a file added' self._dirty = True self._incpathcheck(f) - s = os.lstat(self._join(f)) - self._map[f] = ('a', s.st_mode, s.st_size, s.st_mtime) + self._map[f] = ('a', 0, -1, -1) if f in self._copymap: del self._copymap[f]