mercurial/revlog.py
changeset 51060 f71f07a679b4
parent 51059 47d43efda8b7
child 51061 7c2dc75cdc0f
equal deleted inserted replaced
51059:47d43efda8b7 51060:f71f07a679b4
  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)