diff 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
line wrap: on
line diff
--- a/mercurial/localrepo.py	Thu Oct 16 23:27:54 2014 -0700
+++ b/mercurial/localrepo.py	Sun Dec 14 19:11:44 2014 -0800
@@ -299,7 +299,7 @@
         self.filteredrevcache = {}
 
         # generic mapping between names and nodes
-        self.names = namespaces.namespaces(self)
+        self.names = namespaces.namespaces()
 
     def close(self):
         pass