diff mercurial/debugcommands.py @ 42580:eb7bd7d64a9d

merge with stable
author Augie Fackler <augie@google.com>
date Tue, 09 Jul 2019 10:09:46 -0400
parents 49998d5ba66a 30033d56758f
children 7f1df7019497
line wrap: on
line diff
--- a/mercurial/debugcommands.py	Tue Jul 09 12:58:29 2019 +0300
+++ b/mercurial/debugcommands.py	Tue Jul 09 10:09:46 2019 -0400
@@ -2286,7 +2286,10 @@
     totalrawsize = datasize[2]
     datasize[2] /= numrevs
     fulltotal = fullsize[2]
-    fullsize[2] /= numfull
+    if numfull == 0:
+        fullsize[2] = 0
+    else:
+        fullsize[2] /= numfull
     semitotal = semisize[2]
     snaptotal = {}
     if numsemi > 0: