mercurial/commit.py
changeset 45274 4cde23ba076e
parent 45273 e15416c95b25
child 45275 b3040b6739ce
--- 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,