mercurial/revlogutils/deltas.py
branchstable
changeset 40428 bafa1c4bb7a8
parent 39777 b63dee7bd0d9
child 40451 324ba8b14d78
--- a/mercurial/revlogutils/deltas.py	Mon Oct 29 16:23:42 2018 -0400
+++ b/mercurial/revlogutils/deltas.py	Wed Oct 31 11:02:08 2018 +0100
@@ -646,6 +646,11 @@
         if good is not None:
             break
 
+    # If sparse revlog is enabled, we can try to refine the available deltas
+    if not revlog._sparserevlog:
+        yield None
+        return
+
     # if we have a refinable value, try to refine it
     if good is not None and good not in (p1, p2) and revlog.issnapshot(good):
         # refine snapshot down