Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 610c7d596fb76241053115a77a3dedba8948e87a
      
https://github.com/WebKit/WebKit/commit/610c7d596fb76241053115a77a3dedba8948e87a
  Author: Jonathan Bedard <[email protected]>
  Date:   2023-04-20 (Thu, 20 Apr 2023)

  Changed paths:
    M Tools/Scripts/libraries/webkitscmpy/setup.py
    M Tools/Scripts/libraries/webkitscmpy/webkitscmpy/__init__.py
    M Tools/Scripts/libraries/webkitscmpy/webkitscmpy/local/git.py

  Log Message:
  -----------
  [git-webkit] Avoid listing all branches for old commits
https://bugs.webkit.org/show_bug.cgi?id=255737
rdar://108328653

Reviewed by Dewei Zhu.

For very old commits, listing all branches those commits are members of
can be very expensive. It's also a fairly wasteful operation, most commits
are on `main`, so we should quickly check that case first before attempting
the more general case.

* Tools/Scripts/libraries/webkitscmpy/setup.py: Bump version.
* Tools/Scripts/libraries/webkitscmpy/webkitscmpy/__init__.py: Ditto.
* Tools/Scripts/libraries/webkitscmpy/webkitscmpy/local/git.py:
(Git._is_on_default_branch): Directly check if a commit is on the default 
branch.
(Git.commit): Attempt to directly check if a commit is on the default branch 
before
listing all branches for a commit.

Canonical link: https://commits.webkit.org/263190@main


_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to