Summary: | Add --dry-run option to sort-export-file | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Nagy Renátó <rnagy> | ||||||||||||||||
Component: | New Bugs | Assignee: | Nobody <webkit-unassigned> | ||||||||||||||||
Status: | RESOLVED FIXED | ||||||||||||||||||
Severity: | Normal | CC: | commit-queue, darin, ossy, thorton | ||||||||||||||||
Priority: | P2 | ||||||||||||||||||
Version: | 528+ (Nightly build) | ||||||||||||||||||
Hardware: | Unspecified | ||||||||||||||||||
OS: | Unspecified | ||||||||||||||||||
Attachments: |
|
Description
Nagy Renátó
2014-07-18 06:18:24 PDT
Created attachment 235125 [details]
Proposed patch
The check-webkit-style script is going to need this feature later.
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. Adding new return code to sort-export-file. Created attachment 235215 [details]
Proposed patch
Created attachment 235277 [details]
Proposed patch
Created attachment 235278 [details]
Proposed patch
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. Created attachment 235509 [details]
Patch
Created attachment 235510 [details]
Proposed patch
Created attachment 235515 [details]
Proposed patch
Comment on attachment 235515 [details] Proposed patch Clearing flags on attachment: 235515 Committed r171594: <http://trac.webkit.org/changeset/171594> All reviewed patches have been landed. Closing bug. 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! (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 |