Thread (5 messages) 5 messages, 3 authors, 2023-03-22

Re: bug? round-trip through fast-import/fast-export loses files

From: Priedhorsky, Reid <hidden>
Date: 2023-03-21 15:54:15

On Mar 20, 2023, at 7:57 PM, Elijah Newren [off-list ref] wrote:

Thanks for the well-written bug report, including not only a testcase
but even the relevant bits of the fast-export output.
😁
A better solution that would handle both F->D and
D->F would be having fast-export sort the diff_filepairs such that it
processes the deletes before the modifies.
In fact, the successful workaround in my own code is to re-order the fast-export output in exactly this way (i.e., sort the lines so all the D lines come before all the M lines).
Another improved solution
would be having fast-import sort the files given to it and handling
deletes first.  Either should fix this.

Might be a good task for a new contributor.  Any takers?  (Tagging as
#leftoverbits.)
Let me take a look, but I can’t guarantee anything.

HTH,
Reid

—
he/his
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help