# HG changeset patch # User Pierre-Yves David # Date 1536859323 -7200 # Node ID a023abd12f3b239d531f63f1ac891aab61e5e4f7 # Parent 1c0a09668709d3aa8a0993406a216e2320954ab3 stablesortcache: 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 1c0a09668709 -r a023abd12f3b hgext3rd/evolve/stablesort.py --- a/hgext3rd/evolve/stablesort.py Thu Sep 13 19:22:39 2018 +0200 +++ b/hgext3rd/evolve/stablesort.py Thu Sep 13 19:22:03 2018 +0200 @@ -650,6 +650,7 @@ cachefile.write(indexdata) cachefile.write(data) cachefile.close() + self._ondiskkey = self._cachekey except (IOError, OSError) as exc: repo.ui.debug('stablesortcache: could not write update %s\n' % exc)