@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at recaptime-dev/main 48 lines 1.2 kB view raw
1<?php 2 3/** 4 * Stores outdated refs which need to be checked for reachability. 5 * 6 * When a branch is deleted, the old HEAD ends up here and the discovery 7 * engine marks all the commits that previously appeared on it as unreachable. 8 */ 9final class PhabricatorRepositoryOldRef 10 extends PhabricatorRepositoryDAO 11 implements PhabricatorPolicyInterface { 12 13 protected $repositoryPHID; 14 protected $commitIdentifier; 15 16 protected function getConfiguration() { 17 return array( 18 self::CONFIG_TIMESTAMPS => false, 19 self::CONFIG_COLUMN_SCHEMA => array( 20 'commitIdentifier' => 'text40', 21 ), 22 self::CONFIG_KEY_SCHEMA => array( 23 'key_repository' => array( 24 'columns' => array('repositoryPHID'), 25 ), 26 ), 27 ) + parent::getConfiguration(); 28 } 29 30 31/* -( PhabricatorPolicyInterface )----------------------------------------- */ 32 33 34 public function getCapabilities() { 35 return array( 36 PhabricatorPolicyCapability::CAN_VIEW, 37 ); 38 } 39 40 public function getPolicy($capability) { 41 return PhabricatorPolicies::getMostOpenPolicy(); 42 } 43 44 public function hasAutomaticCapability($capability, PhabricatorUser $viewer) { 45 return false; 46 } 47 48}