Changeset View
Changeset View
Standalone View
Standalone View
src/applications/repository/storage/PhabricatorRepositoryPushLog.php
| Show First 20 Lines • Show All 48 Lines • ▼ Show 20 Lines | final class PhabricatorRepositoryPushLog | ||||
| public static function initializeNewLog(PhabricatorUser $viewer) { | public static function initializeNewLog(PhabricatorUser $viewer) { | ||||
| return id(new PhabricatorRepositoryPushLog()) | return id(new PhabricatorRepositoryPushLog()) | ||||
| ->setPusherPHID($viewer->getPHID()); | ->setPusherPHID($viewer->getPHID()); | ||||
| } | } | ||||
| public static function getHeraldChangeFlagConditionOptions() { | public static function getHeraldChangeFlagConditionOptions() { | ||||
| return array( | return array( | ||||
| PhabricatorRepositoryPushLog::CHANGEFLAG_ADD => | self::CHANGEFLAG_ADD => | ||||
| pht('change creates ref'), | pht('change creates ref'), | ||||
| PhabricatorRepositoryPushLog::CHANGEFLAG_DELETE => | self::CHANGEFLAG_DELETE => | ||||
| pht('change deletes ref'), | pht('change deletes ref'), | ||||
| PhabricatorRepositoryPushLog::CHANGEFLAG_REWRITE => | self::CHANGEFLAG_REWRITE => | ||||
| pht('change rewrites ref'), | pht('change rewrites ref'), | ||||
| PhabricatorRepositoryPushLog::CHANGEFLAG_DANGEROUS => | self::CHANGEFLAG_DANGEROUS => | ||||
| pht('dangerous change'), | pht('dangerous change'), | ||||
| ); | ); | ||||
| } | } | ||||
| protected function getConfiguration() { | protected function getConfiguration() { | ||||
| return array( | return array( | ||||
| self::CONFIG_AUX_PHID => true, | self::CONFIG_AUX_PHID => true, | ||||
| self::CONFIG_TIMESTAMPS => false, | self::CONFIG_TIMESTAMPS => false, | ||||
| ▲ Show 20 Lines • Show All 131 Lines • Show Last 20 Lines | |||||