mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 01:07:15 +03:00
30ad76433e
Summary: This will be useful to explain bytes in the indexedlog. Together with `debugdumpindexedlog` this can be used to troubleshoot issues. For example, `debugdumpindexedlog` has: # Entry 11763: 0004064b: 00 03 01 00 00 00 00 00 05 f1 00 01 ea 8b 80 80 ................ 0004065b: 80 80 80 80 01 ..... The entry can then be easily decoded via debugshell: In [1]: def e(s): ...: print(b.dag.describebytes(bin(s.replace(' ','')))) In [2]: e('00 03 01 00 00 00 00 00 05 f1 00 01 ea 8b 80 80 80 80 80 80 01') # 00: Flags = (empty) # 03: Level = 3 # 01 00 00 00 00 00 05 f1: High = N1521 # 00: Delta = 0 (Low = N1521) # 01: Parent count = 1 # ea 8b 80 80 80 80 80 80 01: Parents[0] = N1514 Reviewed By: sfilipco Differential Revision: D26654639 fbshipit-source-id: c8438623b7e22e6abaf5c3011be25587f9d68753 |
||
---|---|---|
.. | ||
benches | ||
bindag | ||
dag-types | ||
fuzz | ||
gitdag | ||
src | ||
Cargo.toml |