diff -r b8d54f4625cb -r eb7bd7d64a9d mercurial/debugcommands.py --- 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: