hgext/fix.py
changeset 45713 04de8a1ec08f
parent 45218 3ea3b85df03f
child 45807 f90943d753ef
equal deleted inserted replaced
45712:0a330055340c 45713:04de8a1ec08f
   813         copysource = fctx.copysource()
   813         copysource = fctx.copysource()
   814         wctx.write(path, filedata[path], flags=fctx.flags())
   814         wctx.write(path, filedata[path], flags=fctx.flags())
   815         if copysource:
   815         if copysource:
   816             wctx.markcopied(path, copysource)
   816             wctx.markcopied(path, copysource)
   817 
   817 
       
   818     desc = rewriteutil.update_hash_refs(
       
   819         repo,
       
   820         ctx.description(),
       
   821         {oldnode: [newnode] for oldnode, newnode in replacements.items()},
       
   822     )
       
   823 
   818     memctx = wctx.tomemctx(
   824     memctx = wctx.tomemctx(
   819         text=ctx.description(),
   825         text=desc,
   820         branch=ctx.branch(),
   826         branch=ctx.branch(),
   821         extra=extra,
   827         extra=extra,
   822         date=ctx.date(),
   828         date=ctx.date(),
   823         parents=(newp1node, newp2node),
   829         parents=(newp1node, newp2node),
   824         user=ctx.user(),
   830         user=ctx.user(),