mercurial/revlog.py
changeset 50590 5ae124310ab0
parent 50467 814f55775b21
child 50634 32837c7e2e4b
equal deleted inserted replaced
50589:0f83dc22efbc 50590:5ae124310ab0
  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