Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 68b2c9d66ab294432d2a2e31d6297ac2bb7b821b
      
https://github.com/WebKit/WebKit/commit/68b2c9d66ab294432d2a2e31d6297ac2bb7b821b
  Author: Jonathan Bedard <[email protected]>
  Date:   2024-06-06 (Thu, 06 Jun 2024)

  Changed paths:
    M Tools/Scripts/libraries/webkitscmpy/webkitscmpy/local/git.py
    M Tools/Scripts/libraries/webkitscmpy/webkitscmpy/mocks/local/git.py
    M Tools/Scripts/libraries/webkitscmpy/webkitscmpy/test/checkout_unittest.py
    M Tools/Scripts/libraries/webkitscmpy/webkitscmpy/test/conflict_unittest.py

  Log Message:
  -----------
  [git-webkit] Handle ambiguous GitHub PR branches
https://bugs.webkit.org/show_bug.cgi?id=275006
rdar://129087899

Reviewed by Dewei Zhu.

Handle case where a user has multiple types of forks for a given
repository, such as the -security forks many WebKit contributors
maintain.

* Tools/Scripts/libraries/webkitscmpy/webkitscmpy/local/git.py:
(Git.checkout): Attempt multiple variations of a given fork prefix.
* Tools/Scripts/libraries/webkitscmpy/webkitscmpy/mocks/local/git.py:
(Git.__init__): 'git checkout -B' should fail if the source branch cannot be 
found.
(Git.find): Support finding remote branches.
(Git.checkout): Support checking out remote branches as a local ones.
* Tools/Scripts/libraries/webkitscmpy/webkitscmpy/test/checkout_unittest.py:
(TestCheckout.test_checkout_specific_remote): Added.
(TestCheckout.test_checkout_ambiguous_remote): Ditto.
* Tools/Scripts/libraries/webkitscmpy/webkitscmpy/test/conflict_unittest.py:

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to