diff tests/test-exchange-B6.t @ 2083:778afb036245

discovery: introduce a official 'obshash associated to a range The hash in a combination of the hash a its subrange. If the range is a leaf, we have the obsmarker relevant to the node in that leaf range.
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Fri, 10 Mar 2017 10:36:46 -0800
parents a49f2e7a2755
children d0bc98161794
line wrap: on
line diff
--- a/tests/test-exchange-B6.t	Thu Mar 09 22:57:41 2017 -0800
+++ b/tests/test-exchange-B6.t	Fri Mar 10 10:36:46 2017 -0800
@@ -56,6 +56,16 @@
   $ hg debugobsolete
   962ecf6b1afc94e15c7e48fdfb76ef8abd11372b f6298a8ac3a4b78bbeae5f1d3dc5bc3c3812f0f3 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
   f6298a8ac3a4b78bbeae5f1d3dc5bc3c3812f0f3 0 {a9bdc8b26820b1b87d585b82eb0ceb4a2ecdbc04} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
+  $ hg debugobsrelsethashtree
+  a9bdc8b26820b1b87d585b82eb0ceb4a2ecdbc04 86e41541149f4b6cccc5fd131d744d8e83a681e5
+  f5bc6836db60e308a17ba08bf050154ba9c4fad7 f2e05412d3f1d5bc1ae647cf9efc43e0399c26ca
+  962ecf6b1afc94e15c7e48fdfb76ef8abd11372b 974507d1c466d0aa86d288836194339ed3b98736
+  f6298a8ac3a4b78bbeae5f1d3dc5bc3c3812f0f3 04e03a8959d8a39984e6a8f4a16fba975b364747
+  $ hg debugstablerange --rev 'head()'
+  rev         node index size depth      obshash
+    1 f5bc6836db60     0    2     2 000000000000
+    0 a9bdc8b26820     0    1     1 86e41541149f
+    1 f5bc6836db60     1    1     2 000000000000
   $ cd ..
   $ cd ..