svn path=/main/trunk/; revision=3807
writemsg("Deleting invalid mtimedb key: %s\n" % str(k))
del d[k]
self.update(d)
+ self._clean_data = d
def commit(self):
- commit_mtimedb(mydict=self, filename=self.filename)
+ d = {}
+ d.update(self)
+ # Only commit if the internal state has changed.
+ if d != self._clean_data:
+ commit_mtimedb(mydict=d, filename=self.filename)
+ self._clean_data = d
def create_trees(config_root="/", target_root="/", trees=None):
if trees is None: