##// END OF EJS Templates
dirstate: add doesn't need to call stat
Matt Mackall -
r4911:8b6efc8f default
parent child Browse files
Show More
@@ -217,8 +217,7 b' class dirstate(object):'
217 'mark a file added'
217 'mark a file added'
218 self._dirty = True
218 self._dirty = True
219 self._incpathcheck(f)
219 self._incpathcheck(f)
220 s = os.lstat(self._join(f))
220 self._map[f] = ('a', 0, -1, -1)
221 self._map[f] = ('a', s.st_mode, s.st_size, s.st_mtime)
222 if f in self._copymap:
221 if f in self._copymap:
223 del self._copymap[f]
222 del self._copymap[f]
224
223
General Comments 0
You need to be logged in to leave comments. Login now