Mercurial > hg-stable
changeset 45351:a852e5058e69
commitctx: create the `ChangingFiles` object sooner
Let us change the `_commit_manifest` call before other changes.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 29 Jul 2020 16:48:31 +0200 |
parents | dcbad0f17d76 |
children | 027f3dd76302 |
files | mercurial/commit.py |
diffstat | 1 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/commit.py Sat Jul 25 16:34:02 2020 +0200 +++ b/mercurial/commit.py Wed Jul 29 16:48:31 2020 +0200 @@ -202,12 +202,10 @@ touched.extend(removed) - files = touched - mn = _commit_manifest(tr, linkrev, ctx, mctx, m, files, added, drop) - files = metadata.ChangingFiles( - touched=files, added=filesadded, removed=removed + touched=touched, added=filesadded, removed=removed ) + mn = _commit_manifest(tr, linkrev, ctx, mctx, m, files.touched, added, drop) return mn, files