##// END OF EJS Templates
safehasattr: pass attribute name as string instead of bytes...
marmoute -
r51486:5ae12431 default
parent child Browse files
Show More
@@ -1782,7 +1782,7 b' class revlog:'
1782 1782 """tells whether rev is a snapshot"""
1783 1783 if not self._sparserevlog:
1784 1784 return self.deltaparent(rev) == nullrev
1785 elif util.safehasattr(self.index, b'issnapshot'):
1785 elif util.safehasattr(self.index, 'issnapshot'):
1786 1786 # directly assign the method to cache the testing and access
1787 1787 self.issnapshot = self.index.issnapshot
1788 1788 return self.issnapshot(rev)
General Comments 0
You need to be logged in to leave comments. Login now