# HG changeset patch # User Pierre-Yves David # Date 1493734745 -7200 # Node ID ef8beb602b418100d3968f9a6459077fd3b87e3f # Parent 0d2e0e8e76f6554e788effaf544635d60431692d obscache: skip writing if the cache is empty if the cache is empty, we can just skip writing to disk. diff -r 0d2e0e8e76f6 -r ef8beb602b41 hgext3rd/evolve/obscache.py --- a/hgext3rd/evolve/obscache.py Tue May 02 16:17:03 2017 +0200 +++ b/hgext3rd/evolve/obscache.py Tue May 02 16:19:05 2017 +0200 @@ -302,7 +302,7 @@ """save the data to disk""" # XXX it happens that the obsstore is (buggilly) always up to date on disk - if self._cachekey is None: + if self._cachekey is None or self._cachekey == emptykey: return with repo.vfs(self._filepath, 'w', atomictemp=True) as cachefile: