# HG changeset patch # User Boris Feld # Date 1532681999 -7200 # Node ID 5c99486fcfe10b49634566d5bbfd7091699f1bf8 # Parent 18e866ae2a7d384bd8f48ae0e4c6be177ae650bb debugrevlog: document some of the variable used This help to understand the code. diff -r 18e866ae2a7d -r 5c99486fcfe1 mercurial/debugcommands.py --- a/mercurial/debugcommands.py Tue Aug 14 13:36:41 2018 -0700 +++ b/mercurial/debugcommands.py Fri Jul 27 10:59:59 2018 +0200 @@ -2085,18 +2085,30 @@ if not flags: flags = ['(none)'] + ### tracks merge vs single parent nummerges = 0 + + ### tracks ways the "delta" are build + # full file content numfull = 0 + # delta against previous revision numprev = 0 + # delta against first or second parent (not prev) nump1 = 0 nump2 = 0 + # delta against neither prev nor parents numother = 0 + # delta against prev that are also first or second parent + # (details of `numprev`) nump1prev = 0 nump2prev = 0 + + # data about delta chain of each revs chainlengths = [] chainbases = [] chainspans = [] + # data about each revision datasize = [None, 0, 0] fullsize = [None, 0, 0] deltasize = [None, 0, 0]