Developer reports
Mercurial revlog payload map
Map a selected v1 revision to its stored delta chunks and exact byte ranges.
Your inputs
Start with an exampleYour result
Example resultHow it works
Parse 64-byte records and inline payload framing. Separate revision parents from delta predecessors: ordinary deltas use the previous revision, while generaldelta uses the recorded base. Follow the selected chain to its snapshot.
Revision 2 has revision parent 0 but stored delta predecessor 1. Its ordinary chain is 0,1,2 and requires 4+3+2 = 9 compressed bytes.
Limits
Plain revlog v1 only, up to 8 MiB per input and 10000 revisions. Unknown feature/revision flags, forward bases, inconsistent inline offsets and malformed framing reject. External ranges are declared-only unless matching .d bytes are supplied. Node IDs/payloads remain opaque: no decompression, content/hash verification, repair, repository-health or I/O-cost claim.