changelog: drop unnecessary override of "hasnode"
authorYuya Nishihara <yuya@tcha.org>
Sun, 10 May 2015 11:39:01 -0500
changeset 24961 8d81b36fa6ce
parent 24957 17ba4ccd20b4
child 24962 eecd48369caa
changelog: drop unnecessary override of "hasnode" revlog.hasnode() calls self.rev(node) that takes filtering into account.
mercurial/changelog.py
--- a/mercurial/changelog.py	Thu May 07 14:19:20 2015 -0500
+++ b/mercurial/changelog.py	Sun May 10 11:39:01 2015 -0500
@@ -172,14 +172,6 @@
         self.rev(self.node(0))
         return self._nodecache
 
-    def hasnode(self, node):
-        """filtered version of revlog.hasnode"""
-        try:
-            i = self.rev(node)
-            return i not in self.filteredrevs
-        except KeyError:
-            return False
-
     def headrevs(self):
         if self.filteredrevs:
             try: