changeset 4104:a023abd12f3b stable

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.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Thu, 13 Sep 2018 19:22:03 +0200
parents 1c0a09668709
children dda7746647f2
files hgext3rd/evolve/stablesort.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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)