Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 6ba097083082f94642a1c57d9df4d82dfba055a0
https://github.com/WebKit/WebKit/commit/6ba097083082f94642a1c57d9df4d82dfba055a0
Author: Sam Sneddon <[email protected]>
Date: 2026-01-26 (Mon, 26 Jan 2026)
Changed paths:
M Tools/Scripts/libraries/webkitscmpy/webkitscmpy/local/git.py
M Tools/Scripts/libraries/webkitscmpy/webkitscmpy/mocks/local/git.py
Log Message:
-----------
[webkitscmpy] Avoid calling Git.branches_for() in Git.remote_for()
https://bugs.webkit.org/show_bug.cgi?id=305985
Reviewed by Brianna Fan.
We only actually care about a small number of remotes, and only care
about one specific branch name. We can avoid having to iterate over
all refs (both in git and in our own code) if we adopt git
for-each-ref here.
Also, now Git.source_remotes(personal=True) is much quicker, we can
just use a single for-each-ref command to find all the refs both
personal and impersonal, avoiding the extra cost in the fallback case
now we can process it all at once.
* Tools/Scripts/libraries/webkitscmpy/webkitscmpy/local/git.py:
(Git.remote_for):
* Tools/Scripts/libraries/webkitscmpy/webkitscmpy/mocks/local/git.py:
Canonical link: https://commits.webkit.org/306251@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications