# HG changeset patch # User Pierre-Yves David # Date 1536855650 -7200 # Node ID c9fc82c4e66d1d24ed28e709999b712eeb7360f6 # Parent 4ea2a813b82c3d0ea1d159e75337100631c18df5 obscache: 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 4ea2a813b82c -r c9fc82c4e66d hgext3rd/evolve/obscache.py --- a/hgext3rd/evolve/obscache.py Thu Sep 13 18:21:07 2018 +0200 +++ b/hgext3rd/evolve/obscache.py Thu Sep 13 18:20:50 2018 +0200 @@ -410,6 +410,7 @@ cachefile.write(headerdata) cachefile.write(self._data) cachefile.close() + self._ondiskkey = self._cachekey except (IOError, OSError) as exc: repo.ui.debug('obscache: could not write update %s\n' % exc)