Changeset View
Changeset View
Standalone View
Standalone View
src/applications/repository/storage/PhabricatorRepository.php
| Show First 20 Lines • Show All 2,429 Lines • ▼ Show 20 Lines | $this->openTransaction(); | ||||
| $atoms = id(new DivinerAtomQuery()) | $atoms = id(new DivinerAtomQuery()) | ||||
| ->setViewer($engine->getViewer()) | ->setViewer($engine->getViewer()) | ||||
| ->withRepositoryPHIDs(array($phid)) | ->withRepositoryPHIDs(array($phid)) | ||||
| ->execute(); | ->execute(); | ||||
| foreach ($atoms as $atom) { | foreach ($atoms as $atom) { | ||||
| $engine->destroyObject($atom); | $engine->destroyObject($atom); | ||||
| } | } | ||||
| $lfs_refs = id(new PhabricatorRepositoryGitLFSRefQuery()) | |||||
| ->setViewer($engine->getViewer()) | |||||
| ->withRepositoryPHIDs(array($phid)) | |||||
| ->execute(); | |||||
| foreach ($lfs_refs as $ref) { | |||||
| $engine->destroyObject($ref); | |||||
| } | |||||
| $this->saveTransaction(); | $this->saveTransaction(); | ||||
| } | } | ||||
| /* -( PhabricatorSpacesInterface )----------------------------------------- */ | /* -( PhabricatorSpacesInterface )----------------------------------------- */ | ||||
| public function getSpacePHID() { | public function getSpacePHID() { | ||||
| return $this->spacePHID; | return $this->spacePHID; | ||||
| } | } | ||||
| } | } | ||||