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.
Created attachment 68036 [details] Patch
This looks very useful. Sadly, I don't speak Perl.
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.
(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.
Committed r69177: <http://trac.webkit.org/changeset/69177>