Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/engine/DiffusionCommitHookEngine.php
| Show First 20 Lines • Show All 1,089 Lines • ▼ Show 20 Lines | switch ($vcs) { | ||||
| 'user' => $this->getViewer(), | 'user' => $this->getViewer(), | ||||
| 'commit' => $identifier, | 'commit' => $identifier, | ||||
| )); | )); | ||||
| $raw_diff = DiffusionRawDiffQuery::newFromDiffusionRequest($drequest) | $raw_diff = DiffusionRawDiffQuery::newFromDiffusionRequest($drequest) | ||||
| ->setTimeout($time_limit) | ->setTimeout($time_limit) | ||||
| ->setByteLimit($byte_limit) | ->setByteLimit($byte_limit) | ||||
| ->setLinesOfContext(0) | ->setLinesOfContext(0) | ||||
| ->loadRawDiff(); | ->executeInline(); | ||||
| break; | break; | ||||
| case PhabricatorRepositoryType::REPOSITORY_TYPE_SVN: | case PhabricatorRepositoryType::REPOSITORY_TYPE_SVN: | ||||
| // TODO: This diff has 3 lines of context, which produces slightly | // TODO: This diff has 3 lines of context, which produces slightly | ||||
| // incorrect "added file content" and "removed file content" results. | // incorrect "added file content" and "removed file content" results. | ||||
| // This may also choke on binaries, but "svnlook diff" does not support | // This may also choke on binaries, but "svnlook diff" does not support | ||||
| // the "--diff-cmd" flag. | // the "--diff-cmd" flag. | ||||
| // For subversion, we need to use `svnlook`. | // For subversion, we need to use `svnlook`. | ||||
| ▲ Show 20 Lines • Show All 154 Lines • Show Last 20 Lines | |||||