comparison relnotes/next @ 46780:6266d19556ad

node: introduce nodeconstants class In preparing for moving from SHA1 hashes to a modern hash function, place nullid and other constant magic vules in a class. Provide the active set of constants in the repository and push it down. Provide nullid directly in strategic places like the repository as it is accessed very often. This changeset introduces the API change, but not the mechanical replacement of the node.py attributes itself. Differential Revision: https://phab.mercurial-scm.org/D9750
author Joerg Sonnenberger <joerg@bec.de>
date Wed, 13 Jan 2021 16:14:58 +0100
parents 49fd21f32695
children 65d18001cfbf
comparison
equal deleted inserted replaced
46779:49fd21f32695 46780:6266d19556ad
41 41
42 * Callbacks for revlog.addgroup and the changelog._nodeduplicatecallback hook 42 * Callbacks for revlog.addgroup and the changelog._nodeduplicatecallback hook
43 now get a revision number as argument instead of a node. 43 now get a revision number as argument instead of a node.
44 44
45 * revlog.addrevision returns the revision number instead of the node. 45 * revlog.addrevision returns the revision number instead of the node.
46
47 * `nodes.nullid` and related constants are being phased out as part of
48 the deprecation of SHA1. Repository instances and related classes
49 provide access via `nodeconstants` and in some cases `nullid` attributes.