git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] fast-export: ensure that a renamed file is printed after all references

From
Elijah Newren <newren@gmail.com>
Date
Sep 8, 2010, 05:46 UTC
Message-ID
<AANLkTim4iuDOG9U1epcafWarckaa6ZnxCOpfJW8KJW_m@mail.gmail.com>
In-Reply-To
<201009072133.02930.j6t@kdbg.org>
Hi,
On Tue, Sep 7, 2010 at 1:33 PM, Johannes Sixt <j6t@kdbg.org> wrote:
Show 19 quoted lines
> t9350 sets up a commit where a file is both copied and renamed. The output
> of fast-export for this commit should look like this:
>
>  author ...
>  committer ...
>  from :19
>  C "file2" "file4"
>  R "file2" "file5"
>
> The order of the two modification lines is derived from the result that
> the diff machinery produces.
>
> 060df62 (fast-export: Fix output order of D/F changes) inserted a qsort
> call that modifies the order of the diff result. Unfortunately, qsort need
> not be stable. Therefore, it is possible that the 'R' line appears before
> the 'C' line and the resulting fast-import stream is incorrect.
>
> Fix it by forcing that the rename entry is printed after all other
> modification lines with the same file name.

Patch and description looks good to me...however, I was a little surprised to see no testsuite addition or additional explanation. Are you seeing some t9350 tests fail on some platform despite passing on linux?

Elijah
Previous: Johannes SixtNext: Johannes Sixt
Message 2 of 4 in “fast-export: ensure that a renamed file is printed after all references”
  1. fast-export: ensure that a renamed file is printed after all referencesJohannes Sixt, Sep 7, 2010
  2. Elijah NewrenSep 8, 2010
  3. Johannes SixtSep 8, 2010
  4. Elijah NewrenSep 8, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.