Mercurial > public > mercurial-scm > hg
comparison mercurial/revlogutils/nodemap.py @ 46199:8e7ce6555ea7
nodemap: match comment to actual code
REV_OFFSET constant is 2, not 10.
Differential Revision: https://phab.mercurial-scm.org/D9688
author | Joerg Sonnenberger <joerg@bec.de> |
---|---|
date | Thu, 07 Jan 2021 11:51:18 +0100 |
parents | 59fa3890d40a |
children | 28899b6f4480 |
comparison
equal
deleted
inserted
replaced
46198:72007a9ac064 | 46199:8e7ce6555ea7 |
---|---|
389 # The trie is stored as a sequence of block. Each block contains 16 entries | 389 # The trie is stored as a sequence of block. Each block contains 16 entries |
390 # (signed 64bit integer, big endian). Each entry can be one of the following: | 390 # (signed 64bit integer, big endian). Each entry can be one of the following: |
391 # | 391 # |
392 # * value >= 0 -> index of sub-block | 392 # * value >= 0 -> index of sub-block |
393 # * value == -1 -> no value | 393 # * value == -1 -> no value |
394 # * value < -1 -> a revision value: rev = -(value+10) | 394 # * value < -1 -> encoded revision: rev = -(value+2) |
395 # | |
396 # See REV_OFFSET and _transform_rev below. | |
395 # | 397 # |
396 # The implementation focus on simplicity, not on performance. A Rust | 398 # The implementation focus on simplicity, not on performance. A Rust |
397 # implementation should provide a efficient version of the same binary | 399 # implementation should provide a efficient version of the same binary |
398 # persistence. This reference python implementation is never meant to be | 400 # persistence. This reference python implementation is never meant to be |
399 # extensively use in production. | 401 # extensively use in production. |