changeset 4098:c9fc82c4e66d stable

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.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Thu, 13 Sep 2018 18:20:50 +0200
parents 4ea2a813b82c
children 84b203a60788
files hgext3rd/evolve/obscache.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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)