view relnotes/next @ 48976:877d7e1a4223 stable

amend: fix amend with copies in extras If copy information is stored only in the commit extras and not in filelogs, then they get lost on amend if the file wasn't also modified in the working copy. That's because we create `filectx` object from the old commit in those cases, and the `.copysource()` of such objects read only from the filelog. This patch fixes it by always creating a new `memfilectx` in these cases, passing the calculated copy information to it. Differential Revision: https://phab.mercurial-scm.org/D12387
author Martin von Zweigbergk <martinvonz@google.com>
date Fri, 18 Mar 2022 21:15:54 -0700
parents f0081a551f37
children a974c52fb79a
line wrap: on
line source

= Mercurial XXX =

== New Features ==

== Default Format Change ==

These changes affect newly created repositories (or new clones) done with
Mercurial XXX.

== New Experimental Features ==

== Bug Fixes ==

== Backwards Compatibility Changes ==

== Internal API Changes ==

== Miscellaneous ==