Mercurial > hg
diff mercurial/statichttprepo.py @ 16115:236bb604dc39 stable
scmutil: update cached copy when filecached attribute is assigned (issue3263)
When assigning a new object to filecached properties, the cached object that
was kept in the _filecache map was still holding the old object.
By implementing __set__, we track these changes too and update the cached
copy as well.
author | Idan Kamara <idankk86@gmail.com> |
---|---|
date | Wed, 15 Feb 2012 20:02:35 +0200 |
parents | 23921c17299a |
children | a2d6e336e9cc |
line wrap: on
line diff
--- a/mercurial/statichttprepo.py Wed Feb 15 23:44:10 2012 +0200 +++ b/mercurial/statichttprepo.py Wed Feb 15 20:02:35 2012 +0200 @@ -112,6 +112,7 @@ self.spath = self.store.path self.sopener = self.store.opener self.sjoin = self.store.join + self._filecache = {} self.manifest = manifest.manifest(self.sopener) self.changelog = changelog.changelog(self.sopener) @@ -122,7 +123,6 @@ self.encodepats = None self.decodepats = None self.capabilities.difference_update(["pushkey"]) - self._filecache = {} def url(self): return self._url