equal
deleted
inserted
replaced
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(), |