Mercurial > public > mercurial-scm > hg
diff mercurial/context.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 | aead63705504 |
children | 59e703aecaf6 |
line wrap: on
line diff
--- a/mercurial/context.py Thu Oct 16 23:27:54 2014 -0700 +++ b/mercurial/context.py Sun Dec 14 19:11:44 2014 -0800 @@ -409,7 +409,7 @@ # lookup bookmarks through the name interface try: - self._node = repo.names.singlenode(changeid) + self._node = repo.names.singlenode(repo, changeid) self._rev = repo.changelog.rev(self._node) return except KeyError: