debugrevlog: document some of the variable used
authorBoris Feld <boris.feld@octobus.net>
Fri, 27 Jul 2018 10:59:59 +0200
changeset 39080 5c99486fcfe1
parent 39079 18e866ae2a7d
child 39081 195ed920653e
debugrevlog: document some of the variable used This help to understand the code.
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]