From e5bb756b5191720e9979aabe1578119a6739eb95 Mon Sep 17 00:00:00 2001 From: epriestley Date: Wed, 22 Jun 2011 15:49:57 -0700 Subject: [PATCH] Revert "Fixed 'Create Diff'" See T246. This reverts commit 6b7db27524563f7e461ba4327d4d6818f957ab08. --- .../parser/changeset/DifferentialChangesetParser.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/applications/differential/parser/changeset/DifferentialChangesetParser.php b/src/applications/differential/parser/changeset/DifferentialChangesetParser.php index 731e7300b4..2e45839f14 100644 --- a/src/applications/differential/parser/changeset/DifferentialChangesetParser.php +++ b/src/applications/differential/parser/changeset/DifferentialChangesetParser.php @@ -743,16 +743,10 @@ class DifferentialChangesetParser { $changeset = $this->changeset; - // Get the diff for figuring out the creation method. Currently - // 'web' method is broken for 'ignore-all' mode, because the original - // file is not available, only the diff part. - $diff = id(new DifferentialDiff())->load($changeset->getDiffID()); - if ($changeset->getFileType() == DifferentialChangeType::FILE_TEXT || $changeset->getFileType() == DifferentialChangeType::FILE_SYMLINK) { if ($skip_cache || !$this->loadCache()) { - if ($this->whitespaceMode == self::WHITESPACE_IGNORE_ALL && - $diff->getCreationMethod() != 'web') { + if ($this->whitespaceMode == self::WHITESPACE_IGNORE_ALL) { // Huge mess. Generate a "-bw" (ignore all whitespace changes) diff, // parse it out, and then play a shell game with the parsed format