# use the modification time of the newly created temporary file as the
# filesystem's notion of 'now'
now = int(util.fstat(st).st_mtime)
- for f in self._map.keys():
+ cs = cStringIO.StringIO()
+ copymap = self._copymap
+ for f, e in self._map.iteritems():
if e == 'n' and e == now:
# The file was last modified "simultaneously" with the current
# write to dirstate (i.e. within the same second for file-
# dirstate, forcing future 'status' calls to compare the
# contents of the file. This prevents mistakenly treating such
- self._map[f] = (e, 0, -1, -1) # mark entry as 'unset'
+ e = (e, 0, -1, -1) # mark entry as 'unset'
- cs = cStringIO.StringIO()
- copymap = self._copymap
- for f, e in self._map.iteritems():
f = "%s\0%s" % (f, copymap[f])
e = pack(_format, e, e, e, e, len(f))