equal
deleted
inserted
replaced
2075 else: |
2075 else: |
2076 return rev - 1 |
2076 return rev - 1 |
2077 |
2077 |
2078 def issnapshot(self, rev): |
2078 def issnapshot(self, rev): |
2079 """tells whether rev is a snapshot""" |
2079 """tells whether rev is a snapshot""" |
2080 if not self._sparserevlog: |
2080 if not self.delta_config.sparse_revlog: |
2081 return self.deltaparent(rev) == nullrev |
2081 return self.deltaparent(rev) == nullrev |
2082 elif hasattr(self.index, 'issnapshot'): |
2082 elif hasattr(self.index, 'issnapshot'): |
2083 # directly assign the method to cache the testing and access |
2083 # directly assign the method to cache the testing and access |
2084 self.issnapshot = self.index.issnapshot |
2084 self.issnapshot = self.index.issnapshot |
2085 return self.issnapshot(rev) |
2085 return self.issnapshot(rev) |