Bug 247274 - We need git-webkit apply-pr and apply-from-bug
Summary: We need git-webkit apply-pr and apply-from-bug
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks: 239082
  Show dependency treegraph
 
Reported: 2022-10-31 11:32 PDT by Ryosuke Niwa
Modified: 2023-04-20 08:52 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ryosuke Niwa 2022-10-31 11:32:53 PDT
webkit-patch has apply-attachment and apply-from-bug to apply patches posted on Bugzilla.
We need an equivalent command for applying PR and/or PR associated with the bug.
Comment 1 Ryosuke Niwa 2022-10-31 11:51:16 PDT
Note that one of important use cases is to apply PR written by someone else.
Comment 2 Alexey Proskuryakov 2022-10-31 11:55:17 PDT
Arguably more important than it was in webkit-patch, because downloading a diff file from GitHub is an undiscoverable action.
Comment 3 Ryosuke Niwa 2022-10-31 11:57:15 PDT
(In reply to Alexey Proskuryakov from comment #2)
> Arguably more important than it was in webkit-patch, because downloading a
> diff file from GitHub is an undiscoverable action.

Yeah, we used to able to download the diff on Bugzilla and apply that locally. Can't do that anymore either.
Comment 4 Alexey Proskuryakov 2022-10-31 13:27:46 PDT
I should have explained how this undiscoverable action works. Adding .diff or .patch to a PR or commit link (like https://github.com/WebKit/WebKit/pull/5969.diff) produces downloadable diffs, either "git diff" or "git patch" style.
Comment 5 Radar WebKit Bug Importer 2022-11-07 10:33:18 PST
<rdar://problem/102048463>
Comment 6 Jonathan Bedard 2023-04-20 08:52:46 PDT
`git-webkit checkout pr-#` exists, and is designed to solve this problem. If we wanted to expand this to bugs, we're basically resolving the pointer to the PR, then checking out the PR.