Patchwork relnotes: mention the merging of index and nodemap

login
register
mail settings
Submitter Pierre-Yves David
Date Dec. 16, 2019, 1:06 p.m.
Message ID <6198a2aa960a4489104f.1576501602@nodosa.octobus.net>
Download mbox | patch
Permalink /patch/43865/
State Accepted
Headers show

Comments

Pierre-Yves David - Dec. 16, 2019, 1:06 p.m.
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@octobus.net>
# Date 1576496466 -3600
#      Mon Dec 16 12:41:06 2019 +0100
# Node ID 6198a2aa960a4489104f7c870415dc37245cb68e
# Parent  aac921f54554eb1cb4d4416c8237773ceba7de9b
# EXP-Topic release-note-nodemap
# Available At https://dev.heptapod.net/octobus/mercurial-devel/
#              hg pull https://dev.heptapod.net/octobus/mercurial-devel/ -r 6198a2aa960a
relnotes: mention the merging of index and nodemap
Yuya Nishihara - Dec. 16, 2019, 1:18 p.m.
On Mon, 16 Dec 2019 14:06:42 +0100, Pierre-Yves David wrote:
> # HG changeset patch
> # User Pierre-Yves David <pierre-yves.david@octobus.net>
> # Date 1576496466 -3600
> #      Mon Dec 16 12:41:06 2019 +0100
> # Node ID 6198a2aa960a4489104f7c870415dc37245cb68e
> # Parent  aac921f54554eb1cb4d4416c8237773ceba7de9b
> # EXP-Topic release-note-nodemap
> # Available At https://dev.heptapod.net/octobus/mercurial-devel/
> #              hg pull https://dev.heptapod.net/octobus/mercurial-devel/ -r 6198a2aa960a
> relnotes: mention the merging of index and nodemap

Queued, thanks.

Patch

diff --git a/relnotes/next b/relnotes/next
--- a/relnotes/next
+++ b/relnotes/next
@@ -21,3 +21,8 @@ 
    also called when only `explicitdir` used to be called. That may
    mean that you can simply remove the use of `explicitdir` if you
    were already using `traversedir`.
+
+ * The `revlog.nodemap` object have been merged into the `revlog.index` object.
+   * `n in revlog.nodemap` becomes `revlog.index.has_node(n)`,
+   * `revlog.nodemap[n]` becomes `revlog.index.rev(n)`,
+   * `revlog.nodemap.get(n)` becomes `revlog.index.get_rev(n)`.