/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to workingtree.py

Simplify index handling a bit more.

Show diffs side-by-side

added added

removed removed

Lines of Context:
123
123
            if not blob.id in self.repository._git.object_store:
124
124
                self.repository._git.object_store.add_object(blob)
125
125
            # Add an entry to the index or update the existing entry
126
 
            (mode, ino, dev, links, uid, gid, size, atime, mtime, ctime) = stat_val
127
 
            flags = 0
128
 
            self.index[path.encode("utf-8")] = (ctime, mtime, ino, dev, mode, uid, gid, size, blob.id, flags)
 
126
            flags = 0 # FIXME
 
127
            self.index[path.encode("utf-8")] = (stat_val.st_ctime, stat_val.st_mtime, stat_val.st_dev, stat_val.st_ino, stat_val.st_mode, stat_val.st_uid, stat_val.st_gid, stat_val.st_size, blob.id, flags)
129
128
 
130
129
    def flush(self):
131
130
        # TODO: Maybe this should only write on dirty ?