equal
deleted
inserted
replaced
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' |