obscache: skip writing if the cache is empty
if the cache is empty, we can just skip writing to disk.
--- 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: