# HG changeset patch # User Joerg Sonnenberger # Date 2021-01-07 10:51:18 # 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 --git a/mercurial/revlogutils/nodemap.py b/mercurial/revlogutils/nodemap.py --- a/mercurial/revlogutils/nodemap.py +++ b/mercurial/revlogutils/nodemap.py @@ -391,7 +391,9 @@ def _other_rawdata_filepath(revlog, dock # # * 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