tools.linux.kernel.org archive mirror
 help / color / mirror / Atom feed
* b4 patch selection logic
@ 2024-05-22 16:10 Linus Torvalds
  2024-05-22 16:27 ` Konstantin Ryabitsev
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Linus Torvalds @ 2024-05-22 16:10 UTC (permalink / raw)
  To: Konstantin Ryabitsev; +Cc: tools

So I've hit this before, but I hit it again today, and I wonder what
the right solution is.

I have *one* solution, so it's fine, but it feels wrong.

Anyway, the best way to explain is with the actual workflow issue,
where doing a simple

    b4 am 20240515091727.22034-1-laoar.shao@gmail.com

to pick up the patch in that email results in b4 picking up a
completely *different* and older patch, just because it follows the
threading and finds something else entirely.

The solution is trivial: use "--no-parent", and b4 simply won't walk
up the thread. But it really feels like b4 is doing something wrong
for that to be needed.

The thread is obviously this:

    https://lore.kernel.org/all/20240515091727.22034-1-laoar.shao@gmail.com/

and you can see what happens in the thread overview: it walks up to
the root of the discussion, and then notices that there's a "v2" of
the original patch.

But the message ID that I actually pointed at is a *different* patch
with a different subject line, and is newer than either the original
or the v2 in that thread. So I feel like the patch selection logic is
a bit broken here. It's in the same discussion thread, yes, but b4
shouldn't walk around and pick an *older* patch with a different
subject line just because of that.

Anyway, not a big deal. I've hit this multiple times before, this time
I randomly just decided to mention it.

                  Linus

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-05-30 19:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-22 16:10 b4 patch selection logic Linus Torvalds
2024-05-22 16:27 ` Konstantin Ryabitsev
2024-05-22 16:40   ` Linus Torvalds
2024-05-22 16:30 ` Kernel.org Bugbot
2024-05-30 19:50 ` Kernel.org Bugbot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).