changeset 45248:4cde23ba076e

commitctx: create the new extra dict on its own line A trivial move to make the next changeset easier to read.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Sat, 25 Jul 2020 14:59:55 +0200
parents e15416c95b25
children b3040b6739ce
files mercurial/commit.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/commit.py	Wed Jul 29 15:40:13 2020 +0200
+++ b/mercurial/commit.py	Sat Jul 25 14:59:55 2020 +0200
@@ -67,6 +67,8 @@
         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 @@
             p2.node(),
             user,
             ctx.date(),
-            ctx.extra().copy(),
+            extra,
             p1copies,
             p2copies,
             filesadded,