Mercurial > hg-stable
changeset 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 | 72007a9ac064 |
children | bd31462a86a2 |
files | mercurial/revlogutils/nodemap.py |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/revlogutils/nodemap.py Sun Dec 20 15:38:50 2020 +0100 +++ b/mercurial/revlogutils/nodemap.py Thu Jan 07 11:51:18 2021 +0100 @@ -391,7 +391,9 @@ # # * value >= 0 -> index of sub-block # * value == -1 -> no value -# * value < -1 -> a revision value: rev = -(value+10) +# * value < -1 -> encoded revision: rev = -(value+2) +# +# See REV_OFFSET and _transform_rev below. # # The implementation focus on simplicity, not on performance. A Rust # implementation should provide a efficient version of the same binary