mercurial/debugcommands.py
changeset 38647 0f4c2c70e26e
parent 38646 93313f66b69b
child 38707 6b5ca1d0aa1e
--- a/mercurial/debugcommands.py	Thu Jun 21 18:19:57 2018 +0200
+++ b/mercurial/debugcommands.py	Wed Jul 11 13:48:44 2018 +0200
@@ -715,7 +715,10 @@
                 if largestblock < blksize:
                     largestblock = blksize
 
-            readdensity = float(chainsize) / float(readsize)
+            if readsize:
+                readdensity = float(chainsize) / float(readsize)
+            else:
+                readdensity = 1
 
             fm.write('readsize largestblock readdensity srchunks',
                      ' %10d %10d %9.5f %8d',