changeset 24961:8d81b36fa6ce

changelog: drop unnecessary override of "hasnode" revlog.hasnode() calls self.rev(node) that takes filtering into account.
author Yuya Nishihara <yuya@tcha.org>
date Sun, 10 May 2015 11:39:01 -0500
parents 17ba4ccd20b4
children eecd48369caa
files mercurial/changelog.py
diffstat 1 files changed, 0 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- 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: