Mercurial > hg-stable
diff mercurial/statichttprepo.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 | 7cc77030c557 |
line wrap: on
line diff
--- a/mercurial/statichttprepo.py Thu Oct 16 23:27:54 2014 -0700 +++ b/mercurial/statichttprepo.py Sun Dec 14 19:11:44 2014 -0800 @@ -106,7 +106,7 @@ self.vfs = self.opener self._phasedefaults = [] - self.names = namespaces.namespaces(self) + self.names = namespaces.namespaces() try: requirements = scmutil.readrequires(self.opener, self.supported)