RESOLVED FIXED Bug 135048
Add --dry-run option to sort-export-file
https://bugs.webkit.org/show_bug.cgi?id=135048
Summary Add --dry-run option to sort-export-file
Nagy Renátó
Reported 2014-07-18 06:18:24 PDT
Adding dry-run option to sort-export-file script to simulate run without any file modification.
Attachments
Proposed patch (2.59 KB, patch)
2014-07-18 06:46 PDT, Nagy Renátó
no flags
Proposed patch (3.09 KB, patch)
2014-07-21 03:56 PDT, Nagy Renátó
no flags
Proposed patch (2.89 KB, patch)
2014-07-22 01:59 PDT, Nagy Renátó
no flags
Proposed patch (2.89 KB, patch)
2014-07-22 02:01 PDT, Nagy Renátó
no flags
Patch (2.68 KB, patch)
2014-07-25 07:19 PDT, Nagy Renátó
no flags
Proposed patch (2.68 KB, patch)
2014-07-25 07:38 PDT, Nagy Renátó
no flags
Proposed patch (2.68 KB, patch)
2014-07-25 07:50 PDT, Nagy Renátó
no flags
Nagy Renátó
Comment 1 2014-07-18 06:46:06 PDT
Created attachment 235125 [details] Proposed patch The check-webkit-style script is going to need this feature later.
Tim Horton
Comment 2 2014-07-18 06:51:03 PDT
Comment on attachment 235125 [details] Proposed patch View in context: https://bugs.webkit.org/attachment.cgi?id=235125&action=review > Tools/Scripts/sort-export-file:149 > + print STDERR "$exportFile should be sorted \n" if $shouldBeVerbose; I think the return code of the script should indicate whether it was already sorted or not, for ease of use from other scripts.
Nagy Renátó
Comment 3 2014-07-21 03:54:48 PDT
Adding new return code to sort-export-file.
Nagy Renátó
Comment 4 2014-07-21 03:56:27 PDT
Created attachment 235215 [details] Proposed patch
Nagy Renátó
Comment 5 2014-07-22 01:59:12 PDT
Created attachment 235277 [details] Proposed patch
Nagy Renátó
Comment 6 2014-07-22 02:01:36 PDT
Created attachment 235278 [details] Proposed patch
Csaba Osztrogonác
Comment 7 2014-07-24 07:56:19 PDT
Comment on attachment 235278 [details] Proposed patch View in context: https://bugs.webkit.org/attachment.cgi?id=235278&action=review > Tools/Scripts/sort-export-file:157 > open OUT, ">", $exportFile or die "Could not overwrite $exportFile: $!"; > print OUT $after; > close OUT; You shouldn't update the export files here.
Nagy Renátó
Comment 8 2014-07-25 07:19:08 PDT
Nagy Renátó
Comment 9 2014-07-25 07:38:37 PDT
Created attachment 235510 [details] Proposed patch
Nagy Renátó
Comment 10 2014-07-25 07:50:55 PDT
Created attachment 235515 [details] Proposed patch
WebKit Commit Bot
Comment 11 2014-07-25 08:08:59 PDT
Comment on attachment 235515 [details] Proposed patch Clearing flags on attachment: 235515 Committed r171594: <http://trac.webkit.org/changeset/171594>
WebKit Commit Bot
Comment 12 2014-07-25 08:10:07 PDT
All reviewed patches have been landed. Closing bug.
Darin Adler
Comment 13 2014-07-27 23:34:38 PDT
Comment on attachment 235515 [details] Proposed patch View in context: https://bugs.webkit.org/attachment.cgi?id=235515&action=review > Tools/Scripts/sort-export-file:63 > + 0 if OK > + > + 1 if parse error > + > + 2 if file(s) should be sorted (only with --dry-run) > + > + 3 if parse error and file(s) should be sorted (only with --dry-run) Too many blank lines!
Csaba Osztrogonác
Comment 14 2014-07-28 01:43:14 PDT
(In reply to comment #13) > (From update of attachment 235515 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=235515&action=review > > > Tools/Scripts/sort-export-file:63 > > + 0 if OK > > + > > + 1 if parse error > > + > > + 2 if file(s) should be sorted (only with --dry-run) > > + > > + 3 if parse error and file(s) should be sorted (only with --dry-run) > > Too many blank lines! Followup fix landed in https://trac.webkit.org/changeset/171674
Note You need to log in before you can comment on or make changes to this bug.