Mercurial > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
16114:acfca07a8f26 | 16115:236bb604dc39 |
---|---|
110 # setup store | 110 # setup store |
111 self.store = store.store(requirements, self.path, opener) | 111 self.store = store.store(requirements, self.path, opener) |
112 self.spath = self.store.path | 112 self.spath = self.store.path |
113 self.sopener = self.store.opener | 113 self.sopener = self.store.opener |
114 self.sjoin = self.store.join | 114 self.sjoin = self.store.join |
115 self._filecache = {} | |
115 | 116 |
116 self.manifest = manifest.manifest(self.sopener) | 117 self.manifest = manifest.manifest(self.sopener) |
117 self.changelog = changelog.changelog(self.sopener) | 118 self.changelog = changelog.changelog(self.sopener) |
118 self._tags = None | 119 self._tags = None |
119 self.nodetagscache = None | 120 self.nodetagscache = None |
120 self._branchcache = None | 121 self._branchcache = None |
121 self._branchcachetip = None | 122 self._branchcachetip = None |
122 self.encodepats = None | 123 self.encodepats = None |
123 self.decodepats = None | 124 self.decodepats = None |
124 self.capabilities.difference_update(["pushkey"]) | 125 self.capabilities.difference_update(["pushkey"]) |
125 self._filecache = {} | |
126 | 126 |
127 def url(self): | 127 def url(self): |
128 return self._url | 128 return self._url |
129 | 129 |
130 def local(self): | 130 def local(self): |