3 final class PhabricatorRepositoryTrackOnlyTransaction
4 extends PhabricatorRepositoryTransactionType
{
6 const TRANSACTIONTYPE
= 'repo:track-only';
8 public function generateOldValue($object) {
9 return $object->getTrackOnlyRules();
12 public function applyInternalEffects($object, $value) {
13 $object->setTrackOnlyRules($value);
16 public function getTitle() {
17 $old = $this->getOldValue();
18 $new = $this->getNewValue();
22 '%s set this repository to track all branches.',
23 $this->renderAuthor());
26 '%s set this repository to track branches: %s.',
27 $this->renderAuthor(),
28 $this->renderValue(implode(', ', $new)));
31 '%s changed tracked branches from %s to %s.',
32 $this->renderAuthor(),
33 $this->renderValue(implode(', ', $old)),
34 $this->renderValue(implode(', ', $new)));
38 public function validateTransactions($object, array $xactions) {
39 return $this->validateRefList($object, $xactions);