Bug 132300 - REGRESSION (r167751): svn-create-patch is very slow
Summary: REGRESSION (r167751): svn-create-patch is very slow
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Sam Weinig
URL:
Keywords:
Depends on: 131115
Blocks:
  Show dependency treegraph
 
Reported: 2014-04-28 13:32 PDT by Alexey Proskuryakov
Modified: 2014-04-29 09:51 PDT (History)
4 users (show)

See Also:


Attachments
Patch (1.14 KB, patch)
2014-04-28 15:42 PDT, Sam Weinig
ap: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Proskuryakov 2014-04-28 13:32:56 PDT
svn-create-patch has become very slow, now that it runs check-webkit-style.

This is very annoying, especially because I frequently apply and unapply WIP patches locally.
Comment 1 James Craig 2014-04-28 13:40:34 PDT
Weren't you one of the people who suggested running check-webkit-style should be the default? I don't think this bug is actionable unless you're requesting we change that. There is a --no-style flag that you can call or add as a default parameter to your bash profile.
Comment 2 James Craig 2014-04-28 13:42:29 PDT
IOW, this is not any slower than running svn-create-patch + check-webkit-style. If your issue is that check-webkit-style is too slow, that seems like another matter. Which are you requesting?
Comment 3 Alexey Proskuryakov 2014-04-28 14:53:08 PDT
> Weren't you one of the people who suggested running check-webkit-style should be the default? 

If I was, this demonstrates that this was not such a good idea. I didn't know that check-webkit-style was so slow and buggy.

Another use case where this is very annoying is running svn-create-patch to simply see what the current state of the tree is (what did I do?)

> Which are you requesting?

Given the current state of check-webkit-style, seems like it should not be invoked by svn-create-patch by default.

Changing bash profile on every machine just to make svn-create-patch not slow doesn't seem like the right workaround.
Comment 4 Sam Weinig 2014-04-28 15:42:43 PDT
Created attachment 230329 [details]
Patch
Comment 5 Sam Weinig 2014-04-28 15:44:10 PDT
(In reply to comment #2)
> IOW, this is not any slower than running svn-create-patch + check-webkit-style. If your issue is that check-webkit-style is too slow, that seems like another matter. Which are you requesting?

The real issue here is that svn-create-patch + check-webkit-style is not everyone's workflow.  I use svn-create-patch to stash files away all the time, and don't need a style check run.
Comment 6 James Craig 2014-04-28 15:54:27 PDT
Comment on attachment 230329 [details]
Patch

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

> Tools/Scripts/svn-create-patch:80
> +my $checkWebKitStyle = 0;

This is used as a boolean, so you can just remove " = 1" instead of setting it to 0.
Comment 7 Sam Weinig 2014-04-29 09:50:51 PDT
Committed r167939: <http://trac.webkit.org/changeset/167939>
Comment 8 Sam Weinig 2014-04-29 09:51:27 PDT
(In reply to comment #6)
> (From update of attachment 230329 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=230329&action=review
> 
> > Tools/Scripts/svn-create-patch:80
> > +my $checkWebKitStyle = 0;
> 
> This is used as a boolean, so you can just remove " = 1" instead of setting it to 0.

I prefer it to be more explicit.