Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/localrepo.py @ 23561:3c2419e07df5
namespaces: remove weakref; always pass in repo
It turns out that maintaining a reference of any sort (even weak!) to the repo
when constructed doesn't work because we may at some point pass in a repoview
filtered by something other than what the initial repo was.
author | Ryan McElroy <rmcelroy@fb.com> |
---|---|
date | Sun, 14 Dec 2014 19:11:44 -0800 |
parents | 3198aac7a95d |
children | b9af235810cc |
comparison
equal
deleted
inserted
replaced
23560:aead63705504 | 23561:3c2419e07df5 |
---|---|
297 # - working directory parent change, | 297 # - working directory parent change, |
298 # - bookmark changes | 298 # - bookmark changes |
299 self.filteredrevcache = {} | 299 self.filteredrevcache = {} |
300 | 300 |
301 # generic mapping between names and nodes | 301 # generic mapping between names and nodes |
302 self.names = namespaces.namespaces(self) | 302 self.names = namespaces.namespaces() |
303 | 303 |
304 def close(self): | 304 def close(self): |
305 pass | 305 pass |
306 | 306 |
307 def _restrictcapabilities(self, caps): | 307 def _restrictcapabilities(self, caps): |