changelog: remove copy of revlog.nodemap()
authorYuya Nishihara <yuya@tcha.org>
Fri, 17 Aug 2018 12:48:44 +0900
changeset 39142 13a1901176f1
parent 39138 8547c8590ac1
child 39143 65d5de1169dd
changelog: remove copy of revlog.nodemap() It's been there since 2012, "clfilter: introduce `filteredrevs` attribute on changelog." I don't think we can apply changelog filtering to nodemap at this level, so this patch removes the nodemap stub completely.
mercurial/changelog.py
--- a/mercurial/changelog.py	Fri Aug 17 10:51:05 2018 +0900
+++ b/mercurial/changelog.py	Fri Aug 17 12:48:44 2018 +0900
@@ -22,7 +22,6 @@
     error,
     pycompat,
     revlog,
-    util,
 )
 from .utils import (
     dateutil,
@@ -344,12 +343,6 @@
             if i not in self.filteredrevs:
                 yield i
 
-    @util.propertycache
-    def nodemap(self):
-        # XXX need filtering too
-        self.rev(self.node(0))
-        return self._nodecache
-
     def reachableroots(self, minroot, heads, roots, includepath=False):
         return self.index.reachableroots2(minroot, heads, roots, includepath)