Fixed whitespace options in Differential.

Summary:
Whitespace options could not be selected and the 'ignore_all' was not working.

Test Plan:
Made sure that whitespace is ignored correctly and selected option is handled
correctly.

Reviewed By: jungejason
Reviewers: jungejason
CC: epriestley, jungejason, tuomaspelkonen
Differential Revision: 149
This commit is contained in:
tuomaspelkonen
2011-04-18 13:38:54 -07:00
parent 01844087cd
commit a6c770217d
5 changed files with 38 additions and 6 deletions

View File

@@ -675,10 +675,10 @@ EOSYNTHETIC;
$diff = DifferentialDiff::newFromRawChanges($changes);
$changesets = $diff->getChangesets();
$alt_changeset = reset($changesets);
$changeset = reset($changesets);
$this->subparser = new DifferentialChangesetParser();
$this->subparser->setChangeset($alt_changeset);
$this->subparser->setChangeset($changeset);
$this->subparser->setWhitespaceMode(self::WHITESPACE_IGNORE_TRAILING);
}
foreach ($changeset->getHunks() as $hunk) {