# HG changeset patch # User Anton Shestakov # Date 1706981917 10800 # Node ID 79ffeb56fcfa1d4406c533bc95491bfc4413b8b9 # Parent a77b939c79e1275b130aa9def5ac085cf26209e3 uncommit: don't forget to copy commit extras before modifying them Since `extra` is going to be used for creating an entirely new changeset, it has to be a new dict as well. diff -r a77b939c79e1 -r 79ffeb56fcfa hgext3rd/evolve/cmdrewrite.py --- a/hgext3rd/evolve/cmdrewrite.py Thu Feb 01 19:23:53 2024 +0100 +++ b/hgext3rd/evolve/cmdrewrite.py Sat Feb 03 14:38:37 2024 -0300 @@ -554,7 +554,7 @@ date = old.date() branch = old.branch() user = old.user() - extra = old.extra() + extra = old.extra().copy() extra[b'uncommit_source'] = node.short(old.node()) if not message: