diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py --- a/mercurial/localrepo.py +++ b/mercurial/localrepo.py @@ -505,6 +505,9 @@ # generic mapping between names and nodes self.names = namespaces.namespaces() + # a set of hidden revisions which should not be filtered + self._pinnedrevs = set() + # Key to signature value. self._sparsesignaturecache = {} # Signature to cached matcher instance. diff --git a/mercurial/repoview.py b/mercurial/repoview.py --- a/mercurial/repoview.py +++ b/mercurial/repoview.py @@ -33,7 +33,7 @@ """ cl = repo.changelog - pinned = set() + pinned = repo._pinnedrevs pinned.update([par.rev() for par in repo[None].parents()]) pinned.update([cl.rev(bm) for bm in repo._bookmarks.values()])