mercurial/dirstate.py
changeset 4955 8b6efc8fc23c
parent 4952 8c294ee7047e
child 4965 4106dde15aed
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'