WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
46058
Add infrastructure towards detecting change log diffs that aren't at the top of the ChangeLog
https://bugs.webkit.org/show_bug.cgi?id=46058
Summary
Add infrastructure towards detecting change log diffs that aren't at the top ...
Daniel Bates
Reported
2010-09-19 12:50:19 PDT
Towards checking that a change log diff inserts an entry at the top of the ChangeLog file (and possibly have the caller print a warning if it does not), we need to modify VCSUtils::fixChangeLogPatch() so that it returns a reference to a hash structure instead of a string that represents a diff. This will allow us to return additional information to the caller, such as whether the the change log diff inserts an entry at the top of the ChangeLog file.
Attachments
Patch
(15.51 KB, patch)
2010-09-19 14:21 PDT
,
Daniel Bates
ddkilzer
: review+
ddkilzer
: commit-queue-
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Daniel Bates
Comment 1
2010-09-19 14:21:50 PDT
Created
attachment 68036
[details]
Patch
Adam Barth
Comment 2
2010-09-26 22:28:26 PDT
This looks very useful. Sadly, I don't speak Perl.
David Kilzer (:ddkilzer)
Comment 3
2010-10-03 20:23:17 PDT
Comment on
attachment 68036
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=68036&action=review
> WebKitTools/Scripts/VCSUtils.pm:1575 > + my $changeLog = fixChangeLogPatch($patch);
Variable name should note it's a reference to a hash. Maybe $changeLogHash.
> WebKitTools/Scripts/svn-apply:319 > + my $changeLog = fixChangeLogPatch($patch);
Ditto.
> WebKitTools/Scripts/svn-create-patch:236 > + my $changeLog = fixChangeLogPatch($patch);
Ditto.
> WebKitTools/Scripts/svn-unapply:161 > + my $changeLog = fixChangeLogPatch($patch);
Ditto.
> WebKitTools/Scripts/webkitperl/VCSUtils_unittest/fixChangeLogPatch.pl:4 > +# Copyright (C) Research in Motion Limited 2010. All Rights Reserved.
Shouldn't the year of the copyright be after the "(C)"? r=me with the variable name changes.
Daniel Bates
Comment 4
2010-10-05 19:54:16 PDT
(In reply to
comment #3
)
> (From update of
attachment 68036
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=68036&action=review
> > > WebKitTools/Scripts/VCSUtils.pm:1575 > > + my $changeLog = fixChangeLogPatch($patch); > > Variable name should note it's a reference to a hash. Maybe $changeLogHash. >
Will change before I land.
> > WebKitTools/Scripts/svn-apply:319 > > + my $changeLog = fixChangeLogPatch($patch); > > Ditto. >
Will change before I land.
> > WebKitTools/Scripts/svn-create-patch:236 > > + my $changeLog = fixChangeLogPatch($patch); > > Ditto. >
Will change before I land.
> > WebKitTools/Scripts/svn-unapply:161 > > + my $changeLog = fixChangeLogPatch($patch); > > Ditto. >
Will change before I land.
> > WebKitTools/Scripts/webkitperl/VCSUtils_unittest/fixChangeLogPatch.pl:4 > > +# Copyright (C) Research in Motion Limited 2010. All Rights Reserved. > > Shouldn't the year of the copyright be after the "(C)"?
The RIM copyright string uses this explicit order.
Daniel Bates
Comment 5
2010-10-05 21:59:49 PDT
Committed
r69177
: <
http://trac.webkit.org/changeset/69177
>
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