<?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>33578</bug_id>
          
          <creation_ts>2010-01-13 00:06:55 -0800</creation_ts>
          <short_desc>webkit-patch land fails if a user doesn&apos;t provide a bug ID</short_desc>
          <delta_ts>2010-02-01 19:22:06 -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>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>33634</dup_id>
          
          <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="Shinichiro Hamaji">hamaji</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>180106</commentid>
    <comment_count>0</comment_count>
    <who name="Shinichiro Hamaji">hamaji</who>
    <bug_when>2010-01-13 00:06:55 -0800</bug_when>
    <thetext>webkit-patch land fails if a user doesn&apos;t provide a bug ID by command line flags and ChangeLog doesn&apos;t contain the bug URL.

Traceback (most recent call last):
  File &quot;./WebKitTools/Scripts/webkit-patch&quot;, line 108, in &lt;module&gt;
    WebKitPatch().main()
  File &quot;/Users/hamaji/GitKit/WebKitTools/Scripts/webkitpy/multicommandtool.py&quot;, line 299, in main
    return command.check_arguments_and_execute(options, args, self)
  File &quot;/Users/hamaji/GitKit/WebKitTools/Scripts/webkitpy/multicommandtool.py&quot;, line 113, in check_arguments_and_execute
    return self.execute(options, args, tool) or 0
  File &quot;/Users/hamaji/GitKit/WebKitTools/Scripts/webkitpy/commands/abstractsequencedcommand.py&quot;, line 43, in execute
    self._sequence.run_and_handle_errors(tool, options, self._prepare_state(options, args, tool))
  File &quot;/Users/hamaji/GitKit/WebKitTools/Scripts/webkitpy/stepsequence.py&quot;, line 66, in run_and_handle_errors
    self._run(tool, options, state)
  File &quot;/Users/hamaji/GitKit/WebKitTools/Scripts/webkitpy/stepsequence.py&quot;, line 60, in _run
    step(tool, options).run(state)
  File &quot;/Users/hamaji/GitKit/WebKitTools/Scripts/webkitpy/steps/updatechangelogswithreviewer.py&quot;, line 54, in run
    bug_id = state.get(&quot;bug_id&quot;) or state[&quot;patch&quot;].bug_id()
KeyError: &apos;patch&apos;

This is the line in question:

    bug_id = state.get(&quot;bug_id&quot;) or state[&quot;patch&quot;].bug_id()

I&apos;m not sure when state[&quot;patch&quot;] can be set (I didn&apos;t understand the recent changes on this tool yet). If this won&apos;t be set, we may be able to remove expression after &quot;or&quot;. Otherwise, we may want to do like

    bug_id = state.get(&quot;bug_id&quot;)
    if not bug_id and &quot;patch&quot; in state
        bug_id = state[&quot;patch&quot;].bug_id()

?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>186761</commentid>
    <comment_count>1</comment_count>
    <who name="Shinichiro Hamaji">hamaji</who>
    <bug_when>2010-02-01 19:22:06 -0800</bug_when>
    <thetext>This was fixed in another bug.

*** This bug has been marked as a duplicate of bug 33634 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>