stablesortcache: update the variable tracking on-disk state after write stable
authorPierre-Yves David <pierre-yves.david@octobus.net>
Thu, 13 Sep 2018 19:22:03 +0200
branchstable
changeset 4104 a023abd12f3b
parent 4103 1c0a09668709
child 4105 dda7746647f2
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.
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)