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

Re: [PATCH 1/1] commit-graph: fix bug around octopus merges

From
SZEDER Gábor <szeder.dev@gmail.com>
Date
Aug 6, 2019, 15:19 UTC
Message-ID
<20190806151949.GF20404@szeder.dev>
In-Reply-To
<ec14865f-98cb-5e1a-b580-8b6fddaa6217@gmail.com>
On Tue, Aug 06, 2019 at 08:03:07AM -0400, Derrick Stolee wrote:
Show 18 quoted lines
> > On the other hand, one of my fun side-projects is to run some
> > semi-automated and souped-up CI builds of currently cooking topics,
> > which include a custom GETTEXT_POISON mode [1], where the poisoned
> > translated progress output in this new test looks like this [2]:
> > 
> >   V.e.r.i.f.y.i.n.g. .c.o.m.m.i.t.s. .i.n. .c.o.m.m.i.t. .g.r.a.p.h.: 100% (1/1),  d.o.n.e..
> >   V.e.r.i.f.y.i.n.g. .c.o.m.m.i.t.s. .i.n. .c.o.m.m.i.t. .g.r.a.p.h.: 100% (5/5),  d.o.n.e..
> >   V.e.r.i.f.y.i.n.g. .c.o.m.m.i.t.s. .i.n. .c.o.m.m.i.t. .g.r.a.p.h.:
> >     100% (12/12),  d.o.n.e..
> > 
> > So this makes the progress lines almost twice as long, and as the last
> > commit-graph file contains double-digit commits, the length of the
> > progress line just happens to exceed the width of a 80 character
> > terminal, and gets line wrapped.  This throws off the line count
> > check, as there are now 4 lines on standard error instead of the
> > expected 3.
> 
> Thanks for pointing out that the poison runs can change the number of lines.
Hm, I'm afraid I was not clear enough, so let me clarify.

A "regular" GIT_TEST_GETTEXT_POISON=1 test run does not change the number of lines. After it replaces the translated string with the '# GETTEXT POISON #' magic, the progress output will look like this:

  # GETTEXT POISON #:  41% (5/12)
This will never grow long enough to trigger a line break.

It's just one of my fun experiments [1] that makes translated strings twice as long, and thus triggers that line break.

[1] https://github.com/szeder/git gettext-poison-scrambled-msg
Previous: Derrick Stolee
Message 5 of 5 in “[v2.23.0 BUG] commit-graph: fix bug around octopus merges”
  1. 0/1 [v2.23.0 BUG] commit-graph: fix bug around octopus mergesDerrick Stolee via GitGitGadget, Aug 5, 2019
  2. 1/1 commit-graph: fix bug around octopus mergesDerrick Stolee via GitGitGadget, Aug 5, 2019
  3. SZEDER GáborAug 6, 2019
  4. Derrick StoleeAug 6, 2019
  5. SZEDER GáborAug 6, 2019

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.