equal
deleted
inserted
replaced
1780 |
1780 |
1781 def issnapshot(self, rev): |
1781 def issnapshot(self, rev): |
1782 """tells whether rev is a snapshot""" |
1782 """tells whether rev is a snapshot""" |
1783 if not self._sparserevlog: |
1783 if not self._sparserevlog: |
1784 return self.deltaparent(rev) == nullrev |
1784 return self.deltaparent(rev) == nullrev |
1785 elif util.safehasattr(self.index, b'issnapshot'): |
1785 elif util.safehasattr(self.index, 'issnapshot'): |
1786 # directly assign the method to cache the testing and access |
1786 # directly assign the method to cache the testing and access |
1787 self.issnapshot = self.index.issnapshot |
1787 self.issnapshot = self.index.issnapshot |
1788 return self.issnapshot(rev) |
1788 return self.issnapshot(rev) |
1789 if rev == nullrev: |
1789 if rev == nullrev: |
1790 return True |
1790 return True |