<?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>130745</bug_id>
          
          <creation_ts>2014-03-25 15:17:19 -0700</creation_ts>
          <short_desc>webkit-patch upload should complain if bug parameter doesn&apos;t match bug in Changelog</short_desc>
          <delta_ts>2014-03-28 11:38:41 -0700</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>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Blaze Burg">bburg</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abarth</cc>
    
    <cc>darin</cc>
    
    <cc>ddkilzer</cc>
    
    <cc>llango.u-szeged</cc>
    
    <cc>ossy</cc>
    
    <cc>rniwa</cc>
    
    <cc>simon.fraser</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>994368</commentid>
    <comment_count>0</comment_count>
    <who name="Blaze Burg">bburg</who>
    <bug_when>2014-03-25 15:17:19 -0700</bug_when>
    <thetext>Several times now I&apos;ve accidentally bumped other people&apos;s patches because webkit-patch upload doesn&apos;t check that -b &lt;bugid&gt; is the same as https://bugs.webkit.org/show_bug.cgi?id=&lt;bugid&gt; within the changelog header. This should be trivial to check, I think.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>994547</commentid>
    <comment_count>1</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2014-03-26 03:55:32 -0700</bug_when>
    <thetext>Just out of curiosity, why did you pass -b parameter to webkit-patch?
It parses the bug id from changelog and upload the patch to the proper bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>994553</commentid>
    <comment_count>2</comment_count>
    <who name="László Langó">llango.u-szeged</who>
    <bug_when>2014-03-26 05:16:58 -0700</bug_when>
    <thetext>We should not allow -b &lt;bugid&gt; option in upload commands. It is unnecessary as Ossy mentioned and leads to issues.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>994598</commentid>
    <comment_count>3</comment_count>
    <who name="Blaze Burg">bburg</who>
    <bug_when>2014-03-26 09:42:14 -0700</bug_when>
    <thetext>(In reply to comment #1)
&gt; Just out of curiosity, why did you pass -b parameter to webkit-patch?
&gt; It parses the bug id from changelog and upload the patch to the proper bug.

Err, not -b, but just putting the bug number on the command line.
It&apos;s not obvious that the default behavior will parse the change log:

&quot;upload uploads the current diff to bugs.webkit.org.
    If no bug id is provided, upload will create a bug.
    If the current diff does not have a ChangeLog, upload
    will prepare a ChangeLog.&quot;

That first line from the help message makes it sound like it will unconditionally open a new bug. Does it?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>995323</commentid>
    <comment_count>4</comment_count>
    <who name="László Langó">llango.u-szeged</who>
    <bug_when>2014-03-28 07:49:54 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; (In reply to comment #1)
&gt; &gt; Just out of curiosity, why did you pass -b parameter to webkit-patch?
&gt; &gt; It parses the bug id from changelog and upload the patch to the proper bug.
&gt; 
&gt; Err, not -b, but just putting the bug number on the command line.
&gt; It&apos;s not obvious that the default behavior will parse the change log:
&gt; 
&gt; &quot;upload uploads the current diff to bugs.webkit.org.
&gt;     If no bug id is provided, upload will create a bug.
&gt;     If the current diff does not have a ChangeLog, upload
&gt;     will prepare a ChangeLog.&quot;
&gt; 
&gt; That first line from the help message makes it sound like it will unconditionally open a new bug. Does it?

It does, if no bugurl in the ChangeLog and neither &quot;-b &lt;bugid&gt;&quot;. In this case asks for a bugtitle and a comment for the new bug.

I agree that the help message is not obvious.

We should avoid the wrong usage somehow. I think we shouldn&apos;t allow to use the bugurl in the ChangeLog and the -b &quot;&lt;bugid&gt;&quot; option at the same time. Or simply remove the &quot;-b &lt;bugid&gt;&quot; option from the upload command.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>