commitctx: create the new extra dict on its own line
authorPierre-Yves David <pierre-yves.david@octobus.net>
Sat, 25 Jul 2020 14:59:55 +0200
changeset 45274 4cde23ba076e
parent 45273 e15416c95b25
child 45275 b3040b6739ce
commitctx: create the new extra dict on its own line A trivial move to make the next changeset easier to read.
mercurial/commit.py
--- 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,