[Refactoring] In prepare-ChangeLog, make several global variables be used only throug...
authorharaken@chromium.org <haraken@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 15 Dec 2011 23:13:40 +0000 (23:13 +0000)
committerharaken@chromium.org <haraken@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 15 Dec 2011 23:13:40 +0000 (23:13 +0000)
commitbb5f5ff56717fd6b77925a218b79489319820ed9
treeeea7562ad52c365988687dbef18c8c3dbd5729ad
parent13ae971177643327e4e6d772329da412a2b030d5
[Refactoring] In prepare-ChangeLog, make several global variables be used only through parameter passing
https://bugs.webkit.org/show_bug.cgi?id=74497

Reviewed by Ryosuke Niwa.

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. In this patch,
we make the following global variables be used only through parameter passing.
    - $bugDescription
    - $bugNumber
    - $name
    - $emailAddress
    - $gitReviewer
    - $writeChangeLogs

* Scripts/prepare-ChangeLog:
(fetchBugDescriptionFromURL):
(generateNewChangeLogs):
(reviewerAndDescriptionForGitCommit):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@102988 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Tools/ChangeLog
Tools/Scripts/prepare-ChangeLog