Changeset View
Changeset View
Standalone View
Standalone View
src/applications/repository/query/PhabricatorRepositoryPublisher.php
| Show First 20 Lines • Show All 83 Lines • ▼ Show 20 Lines | if ($repository->isGit()) { | ||||
| if (!$commit->isPermanentCommit()) { | if (!$commit->isPermanentCommit()) { | ||||
| $reasons[] = self::HOLD_NOT_REACHABLE_FROM_PERMANENT_REF; | $reasons[] = self::HOLD_NOT_REACHABLE_FROM_PERMANENT_REF; | ||||
| } | } | ||||
| } | } | ||||
| return $reasons; | return $reasons; | ||||
| } | } | ||||
| /* -( Rendering )---------------------------------------------------------- */ | |||||
| public function getHoldName($hold) { | |||||
| $map = array( | |||||
| self::HOLD_IMPORTING => array( | |||||
| 'name' => pht('Repository Importing'), | |||||
| ), | |||||
| self::HOLD_PUBLISHING_DISABLED => array( | |||||
| 'name' => pht('Repository Publishing Disabled'), | |||||
| ), | |||||
| self::HOLD_REF_NOT_BRANCH => array( | |||||
| 'name' => pht('Not a Branch'), | |||||
| ), | |||||
| self::HOLD_NOT_REACHABLE_FROM_PERMANENT_REF => array( | |||||
| 'name' => pht('Not Reachable from Permanent Ref'), | |||||
| ), | |||||
| self::HOLD_UNTRACKED => array( | |||||
| 'name' => pht('Untracked Ref'), | |||||
| ), | |||||
| self::HOLD_NOT_PERMANENT_REF => array( | |||||
| 'name' => pht('Not a Permanent Ref'), | |||||
| ), | |||||
| ); | |||||
| $spec = idx($map, $hold, array()); | |||||
| return idx($spec, 'name', pht('Unknown ("%s")', $hold)); | |||||
| } | |||||
| } | } | ||||