Mercurial > hg
changeset 41083:cbc3cbd9ff93
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.
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Sun, 30 Dec 2018 16:14:42 +0100 |
parents | 4d40f6bb4cef |
children | 84491ae0b3f0 |
files | mercurial/revlog.py |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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