# HG changeset patch # User Pierre-Yves David # Date 1536857764 -7200 # Node ID f21187478dcc34eccc4e33d3e2d5dda4bc5d25f4 # Parent 84b203a6078890a5403e35f8a341cd02ee0fc09e depthcache: update the variable tracking on disk state after write Since we updated the on disk content, we should update that value. In practice the object will likely be discarded after the write, but there is nothing wrong in being more correct. diff -r 84b203a60788 -r f21187478dcc hgext3rd/evolve/depthcache.py --- a/hgext3rd/evolve/depthcache.py Thu Sep 13 17:08:05 2018 +0200 +++ b/hgext3rd/evolve/depthcache.py Thu Sep 13 18:56:04 2018 +0200 @@ -205,5 +205,6 @@ cachefile.write(headerdata) cachefile.write(self._data.tostring()) cachefile.close() + self._ondiskkey = self._cachekey except (IOError, OSError) as exc: repo.ui.debug('depthcache: could not write update %s\n' % exc)