hgext/fix.py
changeset 45713 04de8a1ec08f
parent 45218 3ea3b85df03f
child 45807 f90943d753ef
--- a/hgext/fix.py	Fri Oct 09 00:14:07 2020 -0400
+++ b/hgext/fix.py	Fri Oct 09 00:33:50 2020 -0400
@@ -815,8 +815,14 @@
         if copysource:
             wctx.markcopied(path, copysource)
 
+    desc = rewriteutil.update_hash_refs(
+        repo,
+        ctx.description(),
+        {oldnode: [newnode] for oldnode, newnode in replacements.items()},
+    )
+
     memctx = wctx.tomemctx(
-        text=ctx.description(),
+        text=desc,
         branch=ctx.branch(),
         extra=extra,
         date=ctx.date(),