<?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>40712</bug_id>
          
          <creation_ts>2010-06-16 08:51:09 -0700</creation_ts>
          <short_desc>webkit-patch failure-reason crashes at r61139 when using git (because that commit was on a branch)</short_desc>
          <delta_ts>2010-09-30 06:51:56 -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>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>46866</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="Adam Roben (:aroben)">aroben</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abarth</cc>
    
    <cc>eric</cc>
    
    <cc>ojan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>238905</commentid>
    <comment_count>0</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2010-06-16 08:51:09 -0700</bug_when>
    <thetext>webkit-patch failure-reason crashes at r61139 when using git. Here&apos;s the exception you get:

Traceback (most recent call last):
  File &quot;/home/Adam Roben/dev/WebKit/OpenSource/WebKitTools/Scripts/webkit-patch&quot;, line 64, in &lt;module&gt;
    main()
  File &quot;/home/Adam Roben/dev/WebKit/OpenSource/WebKitTools/Scripts/webkit-patch&quot;, line 59, in main
    WebKitPatch(__file__).main()
  File &quot;/home/Adam Roben/dev/WebKit/OpenSource/WebKitTools/Scripts/webkitpy/tool/multicommandtool.py&quot;, line 302, in main
    result = command.check_arguments_and_execute(options, args, self)
  File &quot;/home/Adam Roben/dev/WebKit/OpenSource/WebKitTools/Scripts/webkitpy/tool/multicommandtool.py&quot;, line 113, in check_arguments_and_execute
    return self.execute(options, args, tool) or 0
  File &quot;/home/Adam Roben/dev/WebKit/OpenSource/WebKitTools/Scripts/webkitpy/tool/commands/queries.py&quot;, line 274, in execute
    return self._explain_failures_for_builder(builder, start_revision=int(start_revision))
  File &quot;/home/Adam Roben/dev/WebKit/OpenSource/WebKitTools/Scripts/webkitpy/tool/commands/queries.py&quot;, line 247, in _explain_failures_for_builder
    self._print_blame_information_for_transition(build, last_build_with_results, fixed_results)
  File &quot;/home/Adam Roben/dev/WebKit/OpenSource/WebKitTools/Scripts/webkitpy/tool/commands/queries.py&quot;, line 206, in _print_blame_information_for_transition
    commit_info = self.tool.checkout().commit_info_for_revision(revision)
  File &quot;/home/Adam Roben/dev/WebKit/OpenSource/WebKitTools/Scripts/webkitpy/common/checkout/api.py&quot;, line 63, in commit_info_for_revision
    committer_email = self._scm.committer_email_for_revision(revision)
  File &quot;/home/Adam Roben/dev/WebKit/OpenSource/WebKitTools/Scripts/webkitpy/common/checkout/scm.py&quot;, line 573, in committer_email_for_revision
    git_commit = self.git_commit_from_svn_revision(revision)
  File &quot;/home/Adam Roben/dev/WebKit/OpenSource/WebKitTools/Scripts/webkitpy/common/checkout/scm.py&quot;, line 560, in git_commit_from_svn_revision
    raise ScriptError(message=&apos;Failed to find git commit for revision %s, your checkout likely needs an update.&apos; % revision)
webkitpy.common.system.executive.ScriptError: Failed to find git commit for revision 61139, your checkout likely needs an update.

The problem is that r61139 was on a branch that I don&apos;t have included in my git repository. Maybe we should just skip over revisions like these?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>238963</commentid>
    <comment_count>1</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-06-16 11:04:49 -0700</bug_when>
    <thetext>I assume you ran it bare?  I think failure-reason will take a starting revision argument, but then again maybe that was in a patch I never landed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>238982</commentid>
    <comment_count>2</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2010-06-16 11:26:55 -0700</bug_when>
    <thetext>(In reply to comment #1)
&gt; I assume you ran it bare?  I think failure-reason will take a starting revision argument, but then again maybe that was in a patch I never landed.

Yes, I did run it bare. And yes, it does take a starting revision argument which you could use to work around this bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>238993</commentid>
    <comment_count>3</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-06-16 11:34:25 -0700</bug_when>
    <thetext>failure-reason could be made a lot more user friendly and smarter, and this is definitely a good bug to have around.  I don&apos;t expect getting to fixing it any time soon though, but thank you for filing. :)  If you&apos;re using failure-reason often, I&apos;m happy to review patches to make it better! :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>287526</commentid>
    <comment_count>4</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2010-09-30 06:51:56 -0700</bug_when>
    <thetext>

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

    </bug>

</bugzilla>