* b4: prep --edit-cover emits strange message about "Already Ran"
@ 2026-03-20 14:41 Dave Marquardt
2026-03-20 14:52 ` Matthieu Baerts
0 siblings, 1 reply; 4+ messages in thread
From: Dave Marquardt @ 2026-03-20 14:41 UTC (permalink / raw)
To: tools
I found the message here a little confusing, and had to go code
spelunking to figure out what it might mean and how I should answer the
Y/N question.
$ b4 prep --edit-cover
Waiting for Emacs...
Invoking git-filter-repo to update the cover letter.
The previous run is older than a day (/home/davemarq/linux/linux/.git/worktrees/ibmvfc-fpin-bis/filter-repo/already_ran already exists).
See "Already Ran" section in the manual for more information.
Treat this run as a continuation of filtering in the previous run (Y/N)? n
New history written in 612.22 seconds...
Completely finished after 612.53 seconds.
Cover letter updated.
I first searched the b4 manual, and found nothing about "Already Ran".
Eventually, on reading the b4 code in ez.py, I found this was from the
git-filter-repo package and I should check its manual. I found the code.
There's no way to opt out of this check and message.
Would you be interested in updating the b4 manual with a note about
this? I eventually figured out I should answer with N. Perhaps an update
to the --edit-cover text in "Prep command flags" in the manual? I'll
provide it if you're interested.
-Dave
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: b4: prep --edit-cover emits strange message about "Already Ran"
2026-03-20 14:41 b4: prep --edit-cover emits strange message about "Already Ran" Dave Marquardt
@ 2026-03-20 14:52 ` Matthieu Baerts
2026-03-20 15:26 ` Dave Marquardt
2026-03-20 15:50 ` Dave Marquardt
0 siblings, 2 replies; 4+ messages in thread
From: Matthieu Baerts @ 2026-03-20 14:52 UTC (permalink / raw)
To: Dave Marquardt; +Cc: tools
Hi Dave,
On 20/03/2026 15:41, Dave Marquardt wrote:
> I found the message here a little confusing, and had to go code
> spelunking to figure out what it might mean and how I should answer the
> Y/N question.
>
> $ b4 prep --edit-cover
> Waiting for Emacs...
> Invoking git-filter-repo to update the cover letter.
> The previous run is older than a day (/home/davemarq/linux/linux/.git/worktrees/ibmvfc-fpin-bis/filter-repo/already_ran already exists).
> See "Already Ran" section in the manual for more information.
> Treat this run as a continuation of filtering in the previous run (Y/N)? n
> New history written in 612.22 seconds...
> Completely finished after 612.53 seconds.
> Cover letter updated.
>
> I first searched the b4 manual, and found nothing about "Already Ran".
> Eventually, on reading the b4 code in ez.py, I found this was from the
> git-filter-repo package and I should check its manual. I found the code.
> There's no way to opt out of this check and message.
Yes, there is: simply by removing the file. That's what b4 is doing for
a while, and it has been backported in the last stable version (0.14.3):
https://git.kernel.org/pub/scm/utils/b4/b4.git/commit/?h=stable-0.14.y&id=e5369681808b
Is it not working on your side? If no, which b4 version are you using?
Cheers,
Matt
--
Sponsored by the NGI0 Core fund.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: b4: prep --edit-cover emits strange message about "Already Ran"
2026-03-20 14:52 ` Matthieu Baerts
@ 2026-03-20 15:26 ` Dave Marquardt
2026-03-20 15:50 ` Dave Marquardt
1 sibling, 0 replies; 4+ messages in thread
From: Dave Marquardt @ 2026-03-20 15:26 UTC (permalink / raw)
To: Matthieu Baerts; +Cc: tools
Matthieu Baerts <matttbe@kernel.org> writes:
> On 20/03/2026 15:41, Dave Marquardt wrote:
>> I found the message here a little confusing, and had to go code
>> spelunking to figure out what it might mean and how I should answer the
>> Y/N question.
>>
>> $ b4 prep --edit-cover
>> Waiting for Emacs...
>> Invoking git-filter-repo to update the cover letter.
>> The previous run is older than a day (/home/davemarq/linux/linux/.git/worktrees/ibmvfc-fpin-bis/filter-repo/already_ran already exists).
>> See "Already Ran" section in the manual for more information.
>> Treat this run as a continuation of filtering in the previous run (Y/N)? n
>> New history written in 612.22 seconds...
>> Completely finished after 612.53 seconds.
>> Cover letter updated.
>>
>> I first searched the b4 manual, and found nothing about "Already Ran".
>> Eventually, on reading the b4 code in ez.py, I found this was from the
>> git-filter-repo package and I should check its manual. I found the code.
>> There's no way to opt out of this check and message.
>
> Yes, there is: simply by removing the file. That's what b4 is doing for
> a while, and it has been backported in the last stable version (0.14.3):
>
>
> https://git.kernel.org/pub/scm/utils/b4/b4.git/commit/?h=stable-0.14.y&id=e5369681808b
>
> Is it not working on your side? If no, which b4 version are you using?
Yeah, this is weird. I'm running 0.15-dev, which is some snapshot of the
master. I just looked at the code that invokes RepoFilter, and here's
the code:
frargs = fr.FilteringOptions.parse_args(['--force', '--quiet', '--refs', f'{commit}~1..HEAD'])
frargs.refs = [f'{commit}~1..HEAD']
frf = fr.RepoFilter(frargs, commit_callback=fred.callback)
So --force is what should remove the file, and for some reason its not
working.
I'll debug at my end to see if I've found a bug.
Thanks!
-Dave
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: b4: prep --edit-cover emits strange message about "Already Ran"
2026-03-20 14:52 ` Matthieu Baerts
2026-03-20 15:26 ` Dave Marquardt
@ 2026-03-20 15:50 ` Dave Marquardt
1 sibling, 0 replies; 4+ messages in thread
From: Dave Marquardt @ 2026-03-20 15:50 UTC (permalink / raw)
To: Matthieu Baerts; +Cc: tools
Matthieu Baerts <matttbe@kernel.org> writes:
> Hi Dave,
>
> On 20/03/2026 15:41, Dave Marquardt wrote:
>> I found the message here a little confusing, and had to go code
>> spelunking to figure out what it might mean and how I should answer the
>> Y/N question.
>>
>> $ b4 prep --edit-cover
>> Waiting for Emacs...
>> Invoking git-filter-repo to update the cover letter.
>> The previous run is older than a day (/home/davemarq/linux/linux/.git/worktrees/ibmvfc-fpin-bis/filter-repo/already_ran already exists).
>> See "Already Ran" section in the manual for more information.
>> Treat this run as a continuation of filtering in the previous run (Y/N)? n
>> New history written in 612.22 seconds...
>> Completely finished after 612.53 seconds.
>> Cover letter updated.
>>
>> I first searched the b4 manual, and found nothing about "Already Ran".
>> Eventually, on reading the b4 code in ez.py, I found this was from the
>> git-filter-repo package and I should check its manual. I found the code.
>> There's no way to opt out of this check and message.
>
> Yes, there is: simply by removing the file. That's what b4 is doing for
> a while, and it has been backported in the last stable version (0.14.3):
>
>
> https://git.kernel.org/pub/scm/utils/b4/b4.git/commit/?h=stable-0.14.y&id=e5369681808b
>
> Is it not working on your side? If no, which b4 version are you using?
Okay, I have this code in my local version, and I think I know why it is
not working. This code uses
gtl = b4.git_get_toplevel()
and b4.git_get_toplevel() uses
gitargs = ['rev-parse', '--show-toplevel']
lines = git_get_command_lines(path, gitargs)
But git-filter-repo uses
git_dir = GitUtils.determine_git_dir(b'.')
and that is
d = subproc.check_output('git rev-parse --git-dir'.split(),
cwd=repo_working_dir).strip()
Since I'm using a Git worktree, "git rev-parse --show-toplevel" and "git
rev-parse --git-dir" return different values:
$ git rev-parse --show-toplevel
/home/davemarq/linux/ibmvfc-fpin-bis
$ git rev-parse --git-dir
/home/davemarq/linux/linux/.git/worktrees/ibmvfc-fpin-bis
So the b4 code is looking in the wrong place.
I'll send a patch for this.
-Dave
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-03-20 15:50 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-20 14:41 b4: prep --edit-cover emits strange message about "Already Ran" Dave Marquardt
2026-03-20 14:52 ` Matthieu Baerts
2026-03-20 15:26 ` Dave Marquardt
2026-03-20 15:50 ` Dave Marquardt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox