Bug 40497 - do-webcore-rename should have a --verbose option
Summary: do-webcore-rename should have a --verbose option
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Other OS X 10.5
: P2 Normal
Assignee: Eric Seidel (no email)
URL:
Keywords:
Depends on:
Blocks: 40491
  Show dependency treegraph
 
Reported: 2010-06-11 14:06 PDT by Eric Seidel (no email)
Modified: 2010-06-12 22:19 PDT (History)
5 users (show)

See Also:


Attachments
Patch (3.28 KB, patch)
2010-06-11 14:09 PDT, Eric Seidel (no email)
no flags Details | Formatted Diff | Diff
Fixed --help support per wms's comment (3.37 KB, patch)
2010-06-11 14:36 PDT, Eric Seidel (no email)
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Seidel (no email) 2010-06-11 14:06:03 PDT
do-webcore-rename should have a --verbose option
Comment 1 Eric Seidel (no email) 2010-06-11 14:09:39 PDT
Created attachment 58506 [details]
Patch
Comment 2 Eric Seidel (no email) 2010-06-11 14:36:37 PDT
Created attachment 58509 [details]
Fixed --help support per wms's comment
Comment 3 Eric Seidel (no email) 2010-06-11 14:36:58 PDT
Comment on attachment 58509 [details]
Fixed --help support per wms's comment

I keep forgetting to pass --request-commit.  sigh.
Comment 4 Daniel Bates 2010-06-12 10:22:26 PDT
Comment on attachment 58509 [details]
Fixed --help support per wms's comment

> -    if ($file =~ /^\../) {
> +    # Ignore excluded and hidden files/directories.
> +    if ($directoriesToIgnore{$file} or $file =~ /^\../ or $file =~ /^ChangeLog/) {
> +        print "Ignoring $File::Find::name\n" if $verbose;
>          $File::Find::prune = 1;

As far as I can tell, $File::Find::prune only makes sense with respects to directories (to prevent descending into a directory), but I don't anticipate any issues with setting this on a file, say the ChangeLog files.

>          return;

r=me.
Comment 5 Eric Seidel (no email) 2010-06-12 20:34:20 PDT
Comment on attachment 58509 [details]
Fixed --help support per wms's comment

Yup the "extra" prune causes no harm.
Comment 6 WebKit Commit Bot 2010-06-12 22:19:47 PDT
Comment on attachment 58509 [details]
Fixed --help support per wms's comment

Clearing flags on attachment: 58509

Committed r61080: <http://trac.webkit.org/changeset/61080>
Comment 7 WebKit Commit Bot 2010-06-12 22:19:54 PDT
All reviewed patches have been landed.  Closing bug.