comparison mercurial/revlogutils/debug.py @ 52648:abc327f9628b

pyupgrade: replace unnecessary lambdas in `collections.defaultdict()` calls This was rewritten by the `defaultdict_lambda` fixer in `pyupgrade`.
author Matt Harbison <matt_harbison@yahoo.com>
date Mon, 06 Jan 2025 01:12:54 -0500
parents 0e11e532c958
children
comparison
equal deleted inserted replaced
52647:ab7b4fba8bde 52648:abc327f9628b
303 # full file content 303 # full file content
304 numfull = 0 304 numfull = 0
305 # intermediate snapshot against a prior snapshot 305 # intermediate snapshot against a prior snapshot
306 numsemi = 0 306 numsemi = 0
307 # snapshot count per depth 307 # snapshot count per depth
308 numsnapdepth = collections.defaultdict(lambda: 0) 308 numsnapdepth = collections.defaultdict(int)
309 # number of snapshots with a non-ancestor delta 309 # number of snapshots with a non-ancestor delta
310 numsnapdepth_nad = collections.defaultdict(lambda: 0) 310 numsnapdepth_nad = collections.defaultdict(int)
311 # delta against previous revision 311 # delta against previous revision
312 numprev = 0 312 numprev = 0
313 # delta against prev, where prev is a non-ancestor 313 # delta against prev, where prev is a non-ancestor
314 numprev_nad = 0 314 numprev_nad = 0
315 # delta against first or second parent (not prev) 315 # delta against first or second parent (not prev)