comparison mercurial/debugcommands.py @ 40029:e2697acd9381

cleanup: some Yoda conditions, this patch removes It seems the factor 20 is less than the frequency of " < \d" compared to " \d > ". Differential Revision: https://phab.mercurial-scm.org/D4862
author Martin von Zweigbergk <martinvonz@google.com>
date Wed, 03 Oct 2018 10:27:44 -0700
parents 426cb2859013
children 64360202d5b2
comparison
equal deleted inserted replaced
40028:51f10e6d66c7 40029:e2697acd9381
2195 datasize[2] /= numrevs 2195 datasize[2] /= numrevs
2196 fulltotal = fullsize[2] 2196 fulltotal = fullsize[2]
2197 fullsize[2] /= numfull 2197 fullsize[2] /= numfull
2198 semitotal = semisize[2] 2198 semitotal = semisize[2]
2199 snaptotal = {} 2199 snaptotal = {}
2200 if 0 < numsemi: 2200 if numsemi > 0:
2201 semisize[2] /= numsemi 2201 semisize[2] /= numsemi
2202 for depth in snapsizedepth: 2202 for depth in snapsizedepth:
2203 snaptotal[depth] = snapsizedepth[depth][2] 2203 snaptotal[depth] = snapsizedepth[depth][2]
2204 snapsizedepth[depth][2] /= numsnapdepth[depth] 2204 snapsizedepth[depth][2] /= numsnapdepth[depth]
2205 2205