Title: [295238] trunk/Tools
- Revision
- 295238
- Author
- [email protected]
- Date
- 2022-06-03 15:21:23 -0700 (Fri, 03 Jun 2022)
Log Message
webkit-patch: `git am` strips []-enclosed prefixes (e.g. [CMake][WPE]) in a subject
https://bugs.webkit.org/show_bug.cgi?id=241114
Reviewed by Jonathan Bedard.
git-am removes all []-enclosed prefixes from a subject by default.
git-am has --keep-non-patch option that removes only "[PATCH]" prefix.
* Tools/CISupport/ews-build/steps.py:
(run):
* Tools/Scripts/webkitpy/common/checkout/checkout.py:
(apply_patch):
Use `--keep-non-patch` option for `git am`.
Canonical link: https://commits.webkit.org/251293@main
Modified Paths
Diff
Modified: trunk/Tools/CISupport/ews-build/steps.py (295237 => 295238)
--- trunk/Tools/CISupport/ews-build/steps.py 2022-06-03 22:08:21 UTC (rev 295237)
+++ trunk/Tools/CISupport/ews-build/steps.py 2022-06-03 22:21:23 UTC (rev 295238)
@@ -887,7 +887,7 @@
if not patch:
commands += [['curl', '-L', 'https://bugs.webkit.org/attachment.cgi?id={}'.format(self.getProperty('patch_id', '')), '-o', '.buildbot-diff']]
commands += [
- ['git', 'am', '.buildbot-diff'],
+ ['git', 'am', '--keep-non-patch', '.buildbot-diff'],
['git', 'filter-branch', '-f', '--msg-filter', 'python3 -c "{}"'.format(self.FILTER_BRANCH_PROGRAM), 'HEAD...HEAD~1'],
]
for command in commands:
Modified: trunk/Tools/Scripts/webkitpy/common/checkout/checkout.py (295237 => 295238)
--- trunk/Tools/Scripts/webkitpy/common/checkout/checkout.py 2022-06-03 22:08:21 UTC (rev 295237)
+++ trunk/Tools/Scripts/webkitpy/common/checkout/checkout.py 2022-06-03 22:21:23 UTC (rev 295238)
@@ -173,7 +173,7 @@
num_commits = len(self.COMMIT_SUBJECT_RE.findall(encoded_patch))
if isinstance(self._scm, Git) and num_commits:
self._executive.run_command(
- ['git', 'am'],
+ ['git', 'am', '--keep-non-patch'],
input=self.filter_patch_content(encoded_patch, reviewer=patch.reviewer().full_name if patch.reviewer() else None),
cwd=self._scm.checkout_root,
)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes