##// END OF EJS Templates
amend: make a copy of "extra" to avoid mutating an input...
Martin von Zweigbergk -
r35197:5cc14407 default
parent child Browse files
Show More
@@ -3137,6 +3137,8 b' def amend(ui, repo, old, extra, pats, op'
3137 # base o - first parent of the changeset to amend
3137 # base o - first parent of the changeset to amend
3138 wctx = repo[None]
3138 wctx = repo[None]
3139
3139
3140 # Copy to avoid mutating input
3141 extra = extra.copy()
3140 # Update extra dict from amended commit (e.g. to preserve graft
3142 # Update extra dict from amended commit (e.g. to preserve graft
3141 # source)
3143 # source)
3142 extra.update(old.extra())
3144 extra.update(old.extra())
General Comments 0
You need to be logged in to leave comments. Login now