Bug 70056 - [webkit-patch] Put Source/Tools changes at the top of patches, LayoutTests at the bottom
Summary: [webkit-patch] Put Source/Tools changes at the top of patches, LayoutTests at...
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Robert Hogan
Depends on:
Reported: 2011-10-13 14:37 PDT by Robert Hogan
Modified: 2011-10-15 12:14 PDT (History)
4 users (show)

See Also:

Patch (2.39 KB, patch)
2011-10-13 14:43 PDT, Robert Hogan
no flags Details | Formatted Diff | Diff
Patch (6.78 KB, patch)
2011-10-15 09:19 PDT, Robert Hogan
abarth: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Hogan 2011-10-13 14:37:53 PDT
This allows git diffs to match the ordering of svn diffs, where LayoutTests are left to the end of the patch. It makes patches easier to review because the code changes are always at the after the blurb in the Changelog.
Comment 1 Robert Hogan 2011-10-13 14:43:57 PDT
Created attachment 110908 [details]
Comment 2 Adam Barth 2011-10-13 14:53:38 PDT
Comment on attachment 110908 [details]

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

> Tools/Scripts/webkitpy/common/checkout/scm/git.py:255
> +        order_file = tempfile.NamedTemporaryFile()

Should this just be a static file in the config directory?  (You can look at the watchlist config file to see how to find the path to config files.)  That seems better that creating and destroying it every time.

Also, please include a test.
Comment 3 Robert Hogan 2011-10-15 09:19:20 PDT
Created attachment 111137 [details]
Comment 4 Adam Barth 2011-10-15 11:13:07 PDT
Comment on attachment 111137 [details]

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

> Tools/ChangeLog:14
> +        * Scripts/webkitpy/common/config/orderfile: Added.

I might have called the file something slightly different, like patchorder, but orderfile is ok to.

Comment 5 Robert Hogan 2011-10-15 12:14:12 PDT
Committed r97561: <http://trac.webkit.org/changeset/97561>