<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>261789</bug_id>
          
          <creation_ts>2023-09-19 17:55:53 -0700</creation_ts>
          <short_desc>`git webkit pr  --no-commit` spits out a bunch of errors when there are multiple commits on a branch</short_desc>
          <delta_ts>2023-11-17 06:48:52 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>Safari 16</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=265030</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Simon Fraser (smfr)">simon.fraser</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>bfan2</cc>
    
    <cc>jbedard</cc>
    
    <cc>ryanhaddad</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1978504</commentid>
    <comment_count>0</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2023-09-19 17:55:53 -0700</bug_when>
    <thetext>I&apos;m on my own branch, which has a two commits on it relative to `main`. `git webkit pr` produces this output:

OpenSource % git webkit pr  --no-commit
ERROR: Unexpected diff format when parsing a chunk: &apos;From 7ba7f1664729c24f8bb6f7a24bda5a64b71b2deb Mon Sep 17 00:00:00 2001&apos;
ERROR: Unexpected diff format when parsing a chunk: &apos;From: Simon Fraser &lt;simon.fraser@apple.com&gt;&apos;
ERROR: Unexpected diff format when parsing a chunk: &apos;Date: Tue, 19 Sep 2023 17:45:18 -0700&apos;
ERROR: Unexpected diff format when parsing a chunk: &apos;Subject: [PATCH 2/2] Add UnifiedPDF feature flag, PDFPluginBase.* and fix the&apos;
ERROR: Unexpected diff format when parsing a chunk: &apos;Reviewed by NOBODY (OOPS!).&apos;
ERROR: Unexpected diff format when parsing a chunk: &apos;Add a feature flag for UnifiedPDF, which is a PDF plugin shared between platforms.&apos;
ERROR: Unexpected diff format when parsing a chunk: &apos;Add empty PDFPluginBase.h/mm files, and deal with the unified sources fallout.&apos;
ERROR: Unexpected diff format when parsing a chunk: &apos;* Source/WebKit/SourcesCocoa.txt:&apos;
ERROR: Unexpected diff format when parsing a chunk: &apos;* Source/WebKit/WebKit.xcodeproj/project.pbxproj:&apos;
ERROR: Unexpected diff format when parsing a chunk: &apos;* Source/WebKit/WebProcess/Plugins/PDF/PDFPluginBase.h: Copied from Source/WebKit/WebProcess/WebCoreSupport/WebBadgeClient.cpp.&apos;
ERROR: Unexpected diff format when parsing a chunk: &apos;* Source/WebKit/WebProcess/Plugins/PDF/PDFPluginBase.mm: Copied from Source/WebKit/WebProcess/WebCoreSupport/WebBadgeClient.cpp.&apos;
ERROR: Unexpected diff format when parsing a chunk: &apos;* Source/WebKit/WebProcess/WebCoreSupport/WebBadgeClient.cpp:&apos;
ERROR: Unexpected diff format when parsing a chunk: &apos;* Source/WebKit/WebProcess/WebCoreSupport/mac/WebContextMenuClientMac.mm:&apos;
ERROR: Unexpected diff format when parsing a chunk: &apos;* Source/WebKit/WebProcess/WebPage/Cocoa/WebPageCocoa.mm:&apos;
ERROR: Unexpected diff format when parsing a chunk: &apos;* Source/WebKit/WebProcess/WebPage/RemoteLayerTree/RemoteScrollbarsController.h:&apos;
ERROR: Unexpected diff format when parsing a chunk: &apos;* Source/WebKit/WebProcess/WebPage/RemoteLayerTree/RemoteScrollbarsController.mm:&apos;
ERROR: Unexpected diff format when parsing a chunk: &apos;(WebKit::RemoteScrollbarsController::shouldRegisterScrollbars const):&apos;
ERROR: Unexpected diff format when parsing a chunk: &apos;* Source/WebKit/webpushd/MockPushServiceConnection.mm:&apos;
ERROR: Unexpected diff format when parsing a chunk: &apos;* Source/WebKit/webpushd/PushService.mm:&apos;
ERROR: Unexpected diff format when parsing a chunk: &apos;* Source/WebKit/webpushd/PushServiceConnection.mm:&apos;
Total errors found: 0 in 13 files
Pushing to fork, which is classified as a public remote
Verifying commits in &apos;default&apos; mode
Attempting to push 1 batch of commits to fork...
Verified 1 novel commit to fork are safe to push
Enumerating objects: 48, done.
Counting objects: 100% (48/48), done.
Delta compression using up to 20 threads
Compressing objects: 100% (26/26), done.
Writing objects: 100% (26/26), 3.37 KiB | 691.00 KiB/s, done.
Total 26 (delta 24), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (24/24), completed with 21 local objects.
To https://github.com/smfr/WebKit.git
 + a0fdec417346...7ba7f1664729 unified-pdf -&gt; unified-pdf (forced update)
Updated &apos;PR 17948 | Add UnifiedPDF&apos;!
https://github.com/WebKit/WebKit/pull/17948

I want to make a PR just for the most recent commit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1980361</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-09-26 17:56:11 -0700</bug_when>
    <thetext>&lt;rdar://problem/116093313&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1993429</commentid>
    <comment_count>2</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2023-11-17 06:43:05 -0800</bug_when>
    <thetext>I think there&apos;s multiple things here —

 * We expect the branch to be what&apos;s being pushed, and what the PR is being created from,

 * That check-webkit-style fails with multiple commits on a branch.

The latter is what I assumed the bug was about from the title, but it sounds from the body like what you&apos;re actually trying to achieve is creating a PR with a single commit?

To actually do that implies we&apos;d do something like:

1. Create a new branch (B&apos;) based on the merge-base of the current branch (B),
2. Cherry-pick the top of B onto B&apos;,
3. Then run the &quot;normal&quot; git-webkit pr flow on B&apos;.

Does that seem right?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1993430</commentid>
    <comment_count>3</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2023-11-17 06:43:57 -0800</bug_when>
    <thetext>(In reply to Sam Sneddon [:gsnedders] from comment #2)
&gt; I think there&apos;s multiple things here —
&gt; 
&gt;  * We expect the branch to be what&apos;s being pushed, and what the PR is being
&gt; created from,
&gt; 
&gt;  * That check-webkit-style fails with multiple commits on a branch.
&gt; 
&gt; The latter is what I assumed the bug was about from the title, but it sounds
&gt; from the body like what you&apos;re actually trying to achieve is creating a PR
&gt; with a single commit?
&gt; 
&gt; To actually do that implies we&apos;d do something like:
&gt; 
&gt; 1. Create a new branch (B&apos;) based on the merge-base of the current branch
&gt; (B),
&gt; 2. Cherry-pick the top of B onto B&apos;,
&gt; 3. Then run the &quot;normal&quot; git-webkit pr flow on B&apos;.
&gt; 
&gt; Does that seem right?

And if you were doing that, you wouldn&apos;t run into the check-webkit-style bug because at that point you&apos;d be running it against a branch with a single commit.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>