WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
74389
[Refactoring] Remove several global variables from prepare-ChangeLog
https://bugs.webkit.org/show_bug.cgi?id=74389
Summary
[Refactoring] Remove several global variables from prepare-ChangeLog
Kentaro Hara
Reported
2011-12-13 01:01:03 PST
We are planning to write unit-tests for prepare-ChangeLog in a run-leaks_unittest manner. This bug is one of the incremental refactorings to remove all top-level code and global variables from prepare-ChangeLog. Global variables in prepare-ChangeLog can be categorized as follows: [A: Constant variables] $changeLogTimeZone $SVN $GIT %supportedTestExtensions [B: Arguments] $bugDescription $bugNumber $name $emailAddress $mergeBase $gitCommit $gitIndex $gitReviewer $openChangeLogs $writeChangeLogs $showHelp $spewDiff $updateChangeLogs $parseOptionsResult [C: Global variables that are used many times here and there] $isSVN $isGit [D: Global variables that are used only a few times] %paths $changedFiles $conflictFiles $functionLists $addedRegressionTests $bugURL $filesInChangeLog $prefixes $changeLogs In this bug, we remove all global variables in [D]. More accurately, we make all variables in [D] being used only through parameter passing.
Attachments
Patch
(9.15 KB, patch)
2011-12-13 01:21 PST
,
Kentaro Hara
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Kentaro Hara
Comment 1
2011-12-13 01:21:51 PST
Created
attachment 118974
[details]
Patch
David Kilzer (:ddkilzer)
Comment 2
2011-12-13 20:22:40 PST
Comment on
attachment 118974
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=118974&action=review
r=me
> Tools/Scripts/prepare-ChangeLog:176 > -my $addedRegressionTests = generateFileList(@changedFiles, @conflictFiles, %functionLists); > +my ($changedFiles, $conflictFiles, $functionLists, $addedRegressionTests) = generateFileList(%paths);
In the future, it seems like we should try to come up with a data structure to hold this data instead of passing a list of variables back. This is okay for now, though.
WebKit Review Bot
Comment 3
2011-12-13 21:13:23 PST
Comment on
attachment 118974
[details]
Patch Clearing flags on attachment: 118974 Committed
r102736
: <
http://trac.webkit.org/changeset/102736
>
WebKit Review Bot
Comment 4
2011-12-13 21:13:27 PST
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