# HG changeset patch # User Joerg Sonnenberger # Date 1610016678 -3600 # Node ID 8e7ce6555ea72c361adb2f5485bfc9faed379b9f # Parent 72007a9ac064243ace1657ce99c72394d9077c61 nodemap: match comment to actual code REV_OFFSET constant is 2, not 10. Differential Revision: https://phab.mercurial-scm.org/D9688 diff -r 72007a9ac064 -r 8e7ce6555ea7 mercurial/revlogutils/nodemap.py --- 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