mercurial/cmdutil.py
changeset 35196 5cc14407a739
parent 35163 ee64e677c3cf
child 35197 bfd072c52e03
--- a/mercurial/cmdutil.py	Sat Dec 02 06:32:41 2017 +0530
+++ b/mercurial/cmdutil.py	Fri Dec 01 14:13:55 2017 -0800
@@ -3137,6 +3137,8 @@
         # base     o - first parent of the changeset to amend
         wctx = repo[None]
 
+        # Copy to avoid mutating input
+        extra = extra.copy()
         # Update extra dict from amended commit (e.g. to preserve graft
         # source)
         extra.update(old.extra())