Differential D10487 Diff 25238 src/applications/repository/worker/commitmessageparser/PhabricatorRepositoryCommitMessageParserWorker.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/repository/worker/commitmessageparser/PhabricatorRepositoryCommitMessageParserWorker.php
Show First 20 Lines • Show All 255 Lines • ▼ Show 20 Lines | if (strlen($raw_diff)) { | ||||
$changes = array(); | $changes = array(); | ||||
} | } | ||||
$diff = DifferentialDiff::newFromRawChanges($changes) | $diff = DifferentialDiff::newFromRawChanges($changes) | ||||
->setRepositoryPHID($this->repository->getPHID()) | ->setRepositoryPHID($this->repository->getPHID()) | ||||
->setAuthorPHID($actor_phid) | ->setAuthorPHID($actor_phid) | ||||
->setCreationMethod('commit') | ->setCreationMethod('commit') | ||||
->setSourceControlSystem($this->repository->getVersionControlSystem()) | ->setSourceControlSystem($this->repository->getVersionControlSystem()) | ||||
->setLintStatus(DifferentialLintStatus::LINT_SKIP) | ->setLintStatus(DifferentialLintStatus::LINT_AUTO_SKIP) | ||||
->setUnitStatus(DifferentialUnitStatus::UNIT_SKIP) | ->setUnitStatus(DifferentialUnitStatus::UNIT_AUTO_SKIP) | ||||
->setDateCreated($this->commit->getEpoch()) | ->setDateCreated($this->commit->getEpoch()) | ||||
->setDescription( | ->setDescription( | ||||
'Commit r'. | 'Commit r'. | ||||
$this->repository->getCallsign(). | $this->repository->getCallsign(). | ||||
$this->commit->getCommitIdentifier()); | $this->commit->getCommitIdentifier()); | ||||
// TODO: This is not correct in SVN where one repository can have multiple | // TODO: This is not correct in SVN where one repository can have multiple | ||||
// Arcanist projects. | // Arcanist projects. | ||||
▲ Show 20 Lines • Show All 235 Lines • Show Last 20 Lines |