revlog: clarify the non sparse-revlog case in `issnapshot`
authorBoris Feld <boris.feld@octobus.net>
Sun, 30 Dec 2018 16:14:42 +0100
changeset 41083 cbc3cbd9ff93
parent 41082 4d40f6bb4cef
child 41084 84491ae0b3f0
revlog: clarify the non sparse-revlog case in `issnapshot` If we are not using sparse-revlog, there is only one type of snapshot, the full one.
mercurial/revlog.py
--- a/mercurial/revlog.py	Sun Dec 30 22:46:54 2018 -0500
+++ b/mercurial/revlog.py	Sun Dec 30 16:14:42 2018 +0100
@@ -1538,6 +1538,8 @@
         deltap = self.deltaparent(rev)
         if deltap == nullrev:
             return True
+        elif not self._sparserevlog:
+            return False
         p1, p2 = self.parentrevs(rev)
         if deltap in (p1, p2):
             return False