Changeset View
Changeset View
Standalone View
Standalone View
src/applications/repository/search/DiffusionCommitFulltextEngine.php
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Lines | if ($author_phid) { | ||||
$date_created); | $date_created); | ||||
} | } | ||||
$document->addRelationship( | $document->addRelationship( | ||||
PhabricatorSearchRelationship::RELATIONSHIP_REPOSITORY, | PhabricatorSearchRelationship::RELATIONSHIP_REPOSITORY, | ||||
$repository->getPHID(), | $repository->getPHID(), | ||||
PhabricatorRepositoryRepositoryPHIDType::TYPECONST, | PhabricatorRepositoryRepositoryPHIDType::TYPECONST, | ||||
$date_created); | $date_created); | ||||
$document->addRelationship( | |||||
$commit->isUnreachable() | |||||
? PhabricatorSearchRelationship::RELATIONSHIP_CLOSED | |||||
: PhabricatorSearchRelationship::RELATIONSHIP_OPEN, | |||||
$commit->getPHID(), | |||||
PhabricatorRepositoryCommitPHIDType::TYPECONST, | |||||
PhabricatorTime::getNow()); | |||||
} | } | ||||
} | } |