RESOLVED FIXED 240256
[webkit-patch] Include commit messages in patches
https://bugs.webkit.org/show_bug.cgi?id=240256
Summary [webkit-patch] Include commit messages in patches
Jonathan Bedard
Reported 2022-05-09 13:24:42 PDT
We should be able to upload and apply patches which contain commit messages.
Attachments
Patch (720 bytes, patch)
2022-05-09 13:28 PDT, Jonathan Bedard
no flags
Patch (5.16 KB, patch)
2022-05-13 11:25 PDT, Jonathan Bedard
no flags
Patch (10.25 KB, patch)
2022-05-13 13:02 PDT, Jonathan Bedard
no flags
Patch (1.82 KB, patch)
2022-05-14 16:15 PDT, Jonathan Bedard
no flags
Patch (1.84 KB, patch)
2022-05-14 16:18 PDT, Jonathan Bedard
no flags
Patch (3.04 KB, patch)
2022-05-14 16:22 PDT, Jonathan Bedard
no flags
Patch (8.10 KB, patch)
2022-05-14 16:37 PDT, Jonathan Bedard
no flags
Patch (8.06 KB, patch)
2022-05-14 16:40 PDT, Jonathan Bedard
no flags
Radar WebKit Bug Importer
Comment 1 2022-05-09 13:24:53 PDT
Jonathan Bedard
Comment 2 2022-05-09 13:28:20 PDT
Jonathan Bedard
Comment 3 2022-05-13 11:25:53 PDT
Jonathan Bedard
Comment 4 2022-05-13 13:02:04 PDT
Alexey Proskuryakov
Comment 5 2022-05-13 13:05:08 PDT
Comment on attachment 459318 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=459318&action=review > COMMIT_MESSAGE:1 > +[webkit-patch] Include commit messages in patches Woot!
Jonathan Bedard
Comment 6 2022-05-13 13:07:14 PDT
EWS
Comment 7 2022-05-13 16:38:50 PDT
Committed r294183 (250550@main): <https://commits.webkit.org/250550@main> Reviewed commits have been landed. Closing PR #616 and removing active labels.
Kimmo Kinnunen
Comment 8 2022-05-14 04:43:03 PDT
possibly broke webkit-patch upload: kkinnunen@mpb4 OpenSource % Tools/Scripts/webkit-patch upload -g HEAD~ Traceback (most recent call last): File "Tools/Scripts/check-webkit-style", line 46, in <module> sys.exit(CheckWebKitStyle().main()) File "/Users/kkinnunen/WebKit/OpenSource/Tools/Scripts/webkitpy/style/main.py", line 157, in main patch = host.scm().create_patch(options.git_commit, changed_files=changed_files, git_index=options.git_index) File "/Users/kkinnunen/WebKit/OpenSource/Tools/Scripts/webkitpy/common/checkout/scm/git.py", line 378, in create_patch return self.run(command, decode_output=False, cwd=self.checkout_root) File "/Users/kkinnunen/WebKit/OpenSource/Tools/Scripts/webkitpy/common/checkout/scm/scm.py", line 73, in run return self._executive.run_command(args, File "/Users/kkinnunen/WebKit/OpenSource/Tools/Scripts/webkitpy/common/system/executive.py", line 445, in run_command (error_handler or self.default_error_handler)(script_error) File "/Users/kkinnunen/WebKit/OpenSource/Tools/Scripts/webkitpy/common/system/abstractexecutive.py", line 98, in default_error_handler raise error webkitpy.common.system.executive.ScriptError: Failed to run "['git', 'format-patch', '--stdout', '--binary', '-O', '/Users/kkinnunen/WebKit/OpenSource/Tools/Scripts/webkitpy/common/config/orderfile', 'HEAD...HEAD~^..HEAD~']" exit_code: 128 cwd: /Users/kkinnunen/WebKit/OpenSource Are you sure you want to continue? [Y/n]: n
Jonathan Bedard
Comment 9 2022-05-14 06:52:53 PDT
Re-opening for pull request https://github.com/WebKit/WebKit/pull/625
Jonathan Bedard
Comment 10 2022-05-14 06:54:03 PDT
(In reply to Kimmo Kinnunen from comment #8) > possibly broke webkit-patch upload: > > kkinnunen@mpb4 OpenSource % Tools/Scripts/webkit-patch upload -g HEAD~ > Traceback (most recent call last): > File "Tools/Scripts/check-webkit-style", line 46, in <module> > sys.exit(CheckWebKitStyle().main()) > File > "/Users/kkinnunen/WebKit/OpenSource/Tools/Scripts/webkitpy/style/main.py", > line 157, in main > patch = host.scm().create_patch(options.git_commit, > changed_files=changed_files, git_index=options.git_index) > File > "/Users/kkinnunen/WebKit/OpenSource/Tools/Scripts/webkitpy/common/checkout/ > scm/git.py", line 378, in create_patch > return self.run(command, decode_output=False, cwd=self.checkout_root) > File > "/Users/kkinnunen/WebKit/OpenSource/Tools/Scripts/webkitpy/common/checkout/ > scm/scm.py", line 73, in run > return self._executive.run_command(args, > File > "/Users/kkinnunen/WebKit/OpenSource/Tools/Scripts/webkitpy/common/system/ > executive.py", line 445, in run_command > (error_handler or self.default_error_handler)(script_error) > File > "/Users/kkinnunen/WebKit/OpenSource/Tools/Scripts/webkitpy/common/system/ > abstractexecutive.py", line 98, in default_error_handler > raise error > webkitpy.common.system.executive.ScriptError: Failed to run "['git', > 'format-patch', '--stdout', '--binary', '-O', > '/Users/kkinnunen/WebKit/OpenSource/Tools/Scripts/webkitpy/common/config/ > orderfile', 'HEAD...HEAD~^..HEAD~']" exit_code: 128 cwd: > /Users/kkinnunen/WebKit/OpenSource > Are you sure you want to continue? [Y/n]: n Thanks for letting me know, sending a fix to merge-queue now.
EWS
Comment 11 2022-05-14 07:41:14 PDT
Committed r294194 (250560@main): <https://commits.webkit.org/250560@main> Reviewed commits have been landed. Closing PR #625 and removing active labels.
Jonathan Bedard
Comment 12 2022-05-14 16:15:50 PDT
Reopening to attach new patch.
Jonathan Bedard
Comment 13 2022-05-14 16:15:52 PDT
Jonathan Bedard
Comment 14 2022-05-14 16:18:34 PDT
Jonathan Bedard
Comment 15 2022-05-14 16:22:18 PDT
Jonathan Bedard
Comment 16 2022-05-14 16:37:36 PDT
Jonathan Bedard
Comment 17 2022-05-14 16:40:39 PDT
EWS
Comment 18 2022-05-14 17:46:25 PDT
Committed r294212 (250570@main): <https://commits.webkit.org/250570@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 459370 [details].
zsun
Comment 19 2022-05-16 03:49:33 PDT
"Tools/Scripts/webkit-patch upload" used to automatically create ChangeLog files but this doesn't seem to be the case any more. Is this something related to this patch?
Jonathan Bedard
Comment 20 2022-05-16 09:18:30 PDT
(In reply to zsun from comment #19) > "Tools/Scripts/webkit-patch upload" used to automatically create ChangeLog > files but this doesn't seem to be the case any more. Is this something > related to this patch? Short answer, yes. Longer answer: If you aren't getting prompted to create a ChangeLog, that probably means you have a local commit. If you run webkit-patch without a local commit and just uncommitted changes, you should get the prompt to create changelogs.
zsun
Comment 21 2022-05-16 09:20:21 PDT
(In reply to Jonathan Bedard from comment #20) > (In reply to zsun from comment #19) > > "Tools/Scripts/webkit-patch upload" used to automatically create ChangeLog > > files but this doesn't seem to be the case any more. Is this something > > related to this patch? > > Short answer, yes. > > Longer answer: If you aren't getting prompted to create a ChangeLog, that > probably means you have a local commit. If you run webkit-patch without a > local commit and just uncommitted changes, you should get the prompt to > create changelogs. Thanks!
Note You need to log in before you can comment on or make changes to this bug.