Bug 107871

Summary: Fixing the diff_parser to correctly identify git diffs even with leading comments.
Product: WebKit Reporter: Tim 'mithro' Ansell <mithro>
Component: New BugsAssignee: Tim 'mithro' Ansell <mithro>
Status: RESOLVED FIXED    
Severity: Normal CC: abarth, dpranke, eric, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Description Tim 'mithro' Ansell 2013-01-24 15:52:37 PST
Fixing the diff_parser to correctly identify git diffs even with leading comments.
Comment 1 Tim 'mithro' Ansell 2013-01-24 15:53:27 PST
Created attachment 184601 [details]
Patch
Comment 2 Eric Seidel (no email) 2013-01-24 20:17:19 PST
Comment on attachment 184601 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=184601&action=review

LGTM.

> Tools/Scripts/webkitpy/common/checkout/diff_parser.py:78
>  # FIXME: This method belongs on DiffParser
> -def get_diff_converter(first_diff_line):
> +def get_diff_converter(lines):

Commonly to solve this sort of testing problem, we just make an object, make this function a method, and then do:

def my_free_function(foo):
     return MyNewObject().my_free_function(foo)

I guess we just haven't gotten to that with DiffParser yet.
Comment 3 WebKit Review Bot 2013-01-24 21:07:59 PST
Comment on attachment 184601 [details]
Patch

Clearing flags on attachment: 184601

Committed r140775: <http://trac.webkit.org/changeset/140775>
Comment 4 WebKit Review Bot 2013-01-24 21:08:03 PST
All reviewed patches have been landed.  Closing bug.