# HG changeset patch # User Pierre-Yves David # Date 1596030013 -7200 # Node ID e15416c95b2558d7a89c0cb3056f0ff980ecf2ff # Parent b1f2659c1c34577b7532ef3d4fa92bbfcc108d98 commitctx: explicitly pass `manifest` to _commit_manifest As pointed out by Yuya Nishihara. diff -r b1f2659c1c34 -r e15416c95b25 mercurial/commit.py --- a/mercurial/commit.py Thu Jul 30 16:58:38 2020 +0100 +++ b/mercurial/commit.py Wed Jul 29 15:40:13 2020 +0200 @@ -206,7 +206,7 @@ touched.extend(removed) files = touched - mn = _commit_manifest(tr, linkrev, ctx, mctx, files, added, drop) + mn = _commit_manifest(tr, linkrev, ctx, mctx, m, files, added, drop) return mn, files, filesadded, removed @@ -347,7 +347,7 @@ return fnode, touched -def _commit_manifest(tr, linkrev, ctx, mctx, files, added, drop): +def _commit_manifest(tr, linkrev, ctx, mctx, manifest, files, added, drop): """make a new manifest entry (or reuse a new one) given an initialised manifest context and precomputed list of @@ -370,8 +370,6 @@ m1 = m1ctx.read() - manifest = mctx.read() - if not files: # if no "files" actually changed in terms of the changelog, # try hard to detect unmodified manifest entry so that the