142
150
# Add an entry to the index or update the existing entry
143
151
(mode, ino, dev, links, uid, gid, size, atime, mtime, ctime) = stat_val
145
self.index[path] = (ctime, mtime, ino, dev, mode, uid, gid, size, blob.id, flags)
153
self.index[path.encode("utf-8")] = (ctime, mtime, ino, dev, mode, uid, gid, size, blob.id, flags)
148
156
# TODO: Maybe this should only write on dirty ?
149
157
if self._control_files._lock_mode != 'w':
150
158
raise errors.NotWriteLocked(self)
152
161
self._inventory_is_modified = False