changeset 42580 | eb7bd7d64a9d |
parent 42523 | 49998d5ba66a |
parent 42554 | 30033d56758f |
child 42651 | 7f1df7019497 |
--- 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: