diff tests/test-parseindex.t @ 49221:75d0775dce7f

debugdeltachain: also display p1/p2 Looking at the parents is a common need when trying to understanding why a delta was chosen, having it readily available helps a lot.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 18 May 2022 17:22:32 +0100
parents 34cdad07d06d
children 786b6225793a
line wrap: on
line diff
--- a/tests/test-parseindex.t	Wed May 18 16:50:55 2022 +0100
+++ b/tests/test-parseindex.t	Wed May 18 17:22:32 2022 +0100
@@ -155,9 +155,9 @@
        1 0000       65      1      0      2 26333235a41c
 
   $ hg -R limit debugdeltachain -c
-      rev  chain# chainlen     prev   delta       size    rawsize  chainsize     ratio   lindist extradist extraratio
-        0       1        1       -1    base         63         62         63   1.01613        63         0    0.00000
-        1       2        1       -1    base         66         65         66   1.01538        66         0    0.00000
+      rev      p1      p2  chain# chainlen     prev   delta       size    rawsize  chainsize     ratio   lindist extradist extraratio
+        0       2      -1       1        1       -1    base         63         62         63   1.01613        63         0    0.00000
+        1       0       2       2        1       -1    base         66         65         66   1.01538        66         0    0.00000
 
   $ hg -R neglimit debugrevlogindex -f1 -c
      rev flag     size   link     p1     p2       nodeid
@@ -170,9 +170,9 @@
        1 0000       65      1      0  65536 26333235a41c
 
   $ hg -R segv debugdeltachain -c
-      rev  chain# chainlen     prev   delta       size    rawsize  chainsize     ratio   lindist extradist extraratio
-        0       1        1       -1    base         63         62         63   1.01613        63         0    0.00000
-        1       2        1       -1    base         66         65         66   1.01538        66         0    0.00000
+      rev      p1      p2  chain# chainlen     prev   delta       size    rawsize  chainsize     ratio   lindist extradist extraratio
+        0   65536      -1       1        1       -1    base         63         62         63   1.01613        63         0    0.00000
+        1       0   65536       2        1       -1    base         66         65         66   1.01538        66         0    0.00000
 
   $ cat <<EOF > test.py
   > import sys