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

Re: Make time-based commit filtering work with topological ordering

From
Linus Torvalds <torvalds@osdl.org>
Date
Sep 20, 2005, 22:50 UTC
Message-ID
<Pine.LNX.4.58.0509201543140.2553@g5.osdl.org>
In-Reply-To
<7vpsr31ii7.fsf@assigned-by-dhcp.cox.net>
On Tue, 20 Sep 2005, Junio C Hamano wrote:
>
> This seems to break t6001 merge-order with max-age test.
Yes. 

Merge-order with ages doesn't make sense. I'd seriously suggest removing --merge-order entirely, but in the meantime I think you should remove anything that tests dates and merge-order.

Merge-order doesn't use the normal limit rules, but does its own home-brew limiting. It could do the date-limiting on its own, if it wanted to, but I doubt it would make sense.

Try the example I had without my patches:
        [torvalds@g5 git]$ git-rev-list $(git-rev-parse --since="8 days ago" HEAD) | wc
             80      80    3280
        [torvalds@g5 git]$ git-rev-list --topo-order $(git-rev-parse --since="8 days ago" HEAD) | wc
             10      10     410

and I bet the same thing was true for --merge-order. And that's just not _sensible_. It doesn't make sense that a time limiter would depend on the order, but the way it used to be done it always did so for very fundamental reasons.

So the old code was broken. Any test for it was broken too.
		Linus
Previous: Junio C HamanoNext: Linus Torvalds
Message 3 of 4 in “Make time-based commit filtering work with topological ordering”
  1. Linus TorvaldsSep 20, 2005
  2. Junio C HamanoSep 20, 2005
  3. Linus TorvaldsSep 20, 2005
  4. Linus TorvaldsSep 21, 2005

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.