[Refactoring] In prepare-ChangeLog, make $isGit and $isSVN be used only
authorharaken@chromium.org <haraken@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 14 Dec 2011 10:31:31 +0000 (10:31 +0000)
committerharaken@chromium.org <haraken@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 14 Dec 2011 10:31:31 +0000 (10:31 +0000)
commite95a8dcd53617f78da42ed71ed612ce8010e8997
tree1efcc7da991b950d1ca0a953ebdedb94feec262e
parent1dfeb10338f4a58e2e2f752fca5f22a87497335b
[Refactoring] In prepare-ChangeLog, make $isGit and $isSVN be used only
through parameter passing
https://bugs.webkit.org/show_bug.cgi?id=74485

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.
    - $isGit
    - $isSVN

* Scripts/prepare-ChangeLog:
(generateFunctionLists):
(printDiff):
(diffFromToString):
(diffCommand):
(statusCommand):
(createPatchCommand):
(diffHeaderFormat):
(generateFileList):
(isAddedStatus):
(isConflictStatus):
(statusDescription):
(extractLineRange):

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