WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 32582
svn-create-patch should print a warning for large patches
https://bugs.webkit.org/show_bug.cgi?id=32582
Summary
svn-create-patch should print a warning for large patches
Chris Jerdonek
Reported
2009-12-15 14:33:00 PST
The svn-create-patch script should display a warning for large patches (e.g. > 20K). This idea is inspired by the following suggestion to modify bugs.webkit.org:
https://bugs.webkit.org/show_bug.cgi?id=25877
Attachments
Patch
(1.55 KB, patch)
2010-03-17 04:55 PDT
,
Zoltan Horvath
no flags
Details
Formatted Diff
Diff
Patch
(1.62 KB, patch)
2010-03-17 09:21 PDT
,
Zoltan Horvath
no flags
Details
Formatted Diff
Diff
fix 2 issues patch
(1.51 KB, patch)
2010-04-09 15:55 PDT
,
Zoltan Horvath
ap
: review-
Details
Formatted Diff
Diff
fix 2 issues patch vol2.
(1.52 KB, patch)
2010-04-09 16:09 PDT
,
Zoltan Horvath
no flags
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
Zoltan Horvath
Comment 1
2010-03-17 04:55:27 PDT
Created
attachment 50895
[details]
Patch
Darin Adler
Comment 2
2010-03-17 08:42:04 PDT
Comment on
attachment 50895
[details]
Patch
> Larger patches than 20k are unlikely to be reviewed!
I've reviewed hundreds of patches that are >20k and had hundreds of >20k patches reviewed, so the phrase above is overstating the case. Maybe we can word a more positive way and be precise: "Patches 20k or smaller are more likely to be reviewed. Larger patches may sit unreviewed for a long time."
Zoltan Horvath
Comment 3
2010-03-17 09:21:57 PDT
Created
attachment 50913
[details]
Patch
Zoltan Horvath
Comment 4
2010-03-17 09:23:41 PDT
Yes, it sounds much friendly. I filed the new patch.
Daniel Bates
Comment 5
2010-03-24 14:27:02 PDT
For your consideration, maybe the message should explicitly suggest that the person split up their patch into smaller sized patches, such as: "Note, this patch is larger than 20 KB. Consider separating this patch into smaller patches that are more manageable to review."
Eric Seidel (no email)
Comment 6
2010-03-25 00:30:03 PDT
Comment on
attachment 50913
[details]
Patch Recommending people break up their patches is good. But this looks OK.
Zoltan Horvath
Comment 7
2010-03-25 02:47:06 PDT
Comment on
attachment 50913
[details]
Patch Clearing flags on attachment: 50913 Committed
r56524
: <
http://trac.webkit.org/changeset/56524
>
Zoltan Horvath
Comment 8
2010-03-25 02:47:15 PDT
All reviewed patches have been landed. Closing bug.
Zoltan Horvath
Comment 9
2010-04-09 15:55:51 PDT
Created
attachment 53008
[details]
fix 2 issues patch Fix 2 issues what was introduced by the change.
Darin Adler
Comment 10
2010-04-09 15:57:14 PDT
Comment on
attachment 53008
[details]
fix 2 issues patch
> Index: WebKitTools/Scripts/svn-create-patch > =================================================================== > --- WebKitTools/Scripts/svn-create-patch (revision 57374) > +++ WebKitTools/Scripts/svn-create-patch (working copy) > @@ -218,10 +218,10 @@ > my $file = File::Spec->catdir($prefix, $fileData->{path}); > > if ($ignoreChangelogs && basename($file) eq "ChangeLog") { > - return; > + return 0; > } > > - my $patch; > + my $patch = ""; > if ($fileData->{modificationType} eq "additionWithHistory") { > manufacturePatchForAdditionWithHistory($fileData); > } > @@ -233,7 +233,7 @@ > } > close DIFF; > $patch = fixChangeLogPatch($patch) if basename($file) eq "ChangeLog"; > - print $patch if $patch; > +
This used to say "print $patch" and now does nothing! Can that really be right?
Alexey Proskuryakov
Comment 11
2010-04-09 16:03:45 PDT
Comment on
attachment 53008
[details]
fix 2 issues patch
> - print $patch if $patch; > +
I don't see how this can be correct - some code needs to print the patch.
Zoltan Horvath
Comment 12
2010-04-09 16:09:59 PDT
Created
attachment 53012
[details]
fix 2 issues patch vol2.
Alexey Proskuryakov
Comment 13
2010-04-09 16:15:56 PDT
Comment on
attachment 53012
[details]
fix 2 issues patch vol2. r=me
Zoltan Horvath
Comment 14
2010-04-09 16:19:07 PDT
Comment on
attachment 53012
[details]
fix 2 issues patch vol2. Clearing flags on attachment: 53012 Committed
r57380
: <
http://trac.webkit.org/changeset/57380
>
Zoltan Horvath
Comment 15
2010-04-09 16:19:17 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug