Mercurial > hg > mercurial-crew-with-dirclash
comparison mercurial/dirstate.py @ 4955:8b6efc8fc23c
dirstate: add doesn't need to call stat
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sat, 21 Jul 2007 16:02:09 -0500 |
parents | 8c294ee7047e |
children | 4106dde15aed |
comparison
equal
deleted
inserted
replaced
4954:fd96bc61a18b | 4955:8b6efc8fc23c |
---|---|
215 | 215 |
216 def add(self, f): | 216 def add(self, f): |
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 |
225 def remove(self, f): | 224 def remove(self, f): |
226 'mark a file removed' | 225 'mark a file removed' |