Differential D8898 Diff 21120 src/applications/repository/storage/PhabricatorRepositoryTransaction.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/repository/storage/PhabricatorRepositoryTransaction.php
| Show First 20 Lines • Show All 332 Lines • ▼ Show 20 Lines | switch ($this->getTransactionType()) { | ||||
| '"%s" to "%s".', | '"%s" to "%s".', | ||||
| $this->renderHandleLink($author_phid), | $this->renderHandleLink($author_phid), | ||||
| PhabricatorRepository::getProtocolAvailabilityName($old), | PhabricatorRepository::getProtocolAvailabilityName($old), | ||||
| PhabricatorRepository::getProtocolAvailabilityName($new)); | PhabricatorRepository::getProtocolAvailabilityName($new)); | ||||
| case self::TYPE_PUSH_POLICY: | case self::TYPE_PUSH_POLICY: | ||||
| return pht( | return pht( | ||||
| '%s changed the push policy of this repository from "%s" to "%s".', | '%s changed the push policy of this repository from "%s" to "%s".', | ||||
| $this->renderHandleLink($author_phid), | $this->renderHandleLink($author_phid), | ||||
| $this->renderPolicyName($old), | $this->renderPolicyName($old, 'old'), | ||||
| $this->renderPolicyName($new)); | $this->renderPolicyName($new, 'new')); | ||||
| case self::TYPE_DANGEROUS: | case self::TYPE_DANGEROUS: | ||||
| if ($new) { | if ($new) { | ||||
| return pht( | return pht( | ||||
| '%s disabled protection against dangerous changes.', | '%s disabled protection against dangerous changes.', | ||||
| $this->renderHandleLink($author_phid)); | $this->renderHandleLink($author_phid)); | ||||
| } else { | } else { | ||||
| return pht( | return pht( | ||||
| '%s enabled protection against dangerous changes.', | '%s enabled protection against dangerous changes.', | ||||
| Show All 40 Lines | |||||