# HG changeset patch # User Pierre-Yves David # Date 2020-07-25 12:59:55 # Node ID 4cde23ba076ea03e70ca85eea6606b43f90ee282 # Parent e15416c95b2558d7a89c0cb3056f0ff980ecf2ff commitctx: create the new extra dict on its own line A trivial move to make the next changeset easier to read. diff --git a/mercurial/commit.py b/mercurial/commit.py --- a/mercurial/commit.py +++ b/mercurial/commit.py @@ -67,6 +67,8 @@ def commitctx(repo, ctx, error=False, or r = _prepare_files(tr, ctx, error=error, origctx=origctx) mn, files, p1copies, p2copies, filesadded, filesremoved = r + extra = ctx.extra().copy() + # update changelog repo.ui.note(_(b"committing changelog\n")) repo.changelog.delayupdate(tr) @@ -79,7 +81,7 @@ def commitctx(repo, ctx, error=False, or p2.node(), user, ctx.date(), - ctx.extra().copy(), + extra, p1copies, p2copies, filesadded,