Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/editor/DiffusionRepositoryEditEngine.php
| Show First 20 Lines • Show All 208 Lines • ▼ Show 20 Lines | protected function buildCustomEditFields($object) { | ||||
| $policies = id(new PhabricatorPolicyQuery()) | $policies = id(new PhabricatorPolicyQuery()) | ||||
| ->setViewer($viewer) | ->setViewer($viewer) | ||||
| ->setObject($object) | ->setObject($object) | ||||
| ->execute(); | ->execute(); | ||||
| $fetch_value = $object->getFetchRules(); | $fetch_value = $object->getFetchRules(); | ||||
| $track_value = $object->getTrackOnlyRules(); | $track_value = $object->getTrackOnlyRules(); | ||||
| $autoclose_value = $object->getAutocloseOnlyRules(); | $permanent_value = $object->getAutocloseOnlyRules(); | ||||
| $automation_instructions = pht( | $automation_instructions = pht( | ||||
| "Configure **Repository Automation** to allow Phabricator to ". | "Configure **Repository Automation** to allow Phabricator to ". | ||||
| "write to this repository.". | "write to this repository.". | ||||
| "\n\n". | "\n\n". | ||||
| "IMPORTANT: This feature is new, experimental, and not supported. ". | "IMPORTANT: This feature is new, experimental, and not supported. ". | ||||
| "Use it at your own risk."); | "Use it at your own risk."); | ||||
| ▲ Show 20 Lines • Show All 158 Lines • ▼ Show 20 Lines | return array( | ||||
| PhabricatorRepositoryTrackOnlyTransaction::TRANSACTIONTYPE) | PhabricatorRepositoryTrackOnlyTransaction::TRANSACTIONTYPE) | ||||
| ->setIsCopyable(true) | ->setIsCopyable(true) | ||||
| ->setDescription(pht('Track only these branches.')) | ->setDescription(pht('Track only these branches.')) | ||||
| ->setConduitDescription(pht('Set the tracked branches.')) | ->setConduitDescription(pht('Set the tracked branches.')) | ||||
| ->setConduitTypeDescription(pht('New tracked branches.')) | ->setConduitTypeDescription(pht('New tracked branches.')) | ||||
| ->setValue($track_value), | ->setValue($track_value), | ||||
| id(new PhabricatorTextAreaEditField()) | id(new PhabricatorTextAreaEditField()) | ||||
| ->setIsStringList(true) | ->setIsStringList(true) | ||||
| ->setKey('autocloseOnly') | ->setKey('permanentRefs') | ||||
| ->setLabel(pht('Autoclose Only')) | ->setLabel(pht('Permanent Refs')) | ||||
| ->setTransactionType( | ->setTransactionType( | ||||
| PhabricatorRepositoryAutocloseOnlyTransaction::TRANSACTIONTYPE) | PhabricatorRepositoryAutocloseOnlyTransaction::TRANSACTIONTYPE) | ||||
| ->setIsCopyable(true) | ->setIsCopyable(true) | ||||
| ->setDescription(pht('Autoclose commits on only these branches.')) | ->setDescription(pht('Only these refs are considered permanent.')) | ||||
| ->setConduitDescription(pht('Set the autoclose branches.')) | ->setConduitDescription(pht('Set the permanent refs.')) | ||||
| ->setConduitTypeDescription(pht('New default tracked branches.')) | ->setConduitTypeDescription(pht('New permanent ref rules.')) | ||||
| ->setValue($autoclose_value), | ->setValue($permanent_value), | ||||
amckinley: This kinda implies that something nefarious might happen to refs that you mark as "non… | |||||
| id(new PhabricatorTextEditField()) | id(new PhabricatorTextEditField()) | ||||
| ->setKey('importOnly') | ->setKey('importOnly') | ||||
| ->setLabel(pht('Import Only')) | ->setLabel(pht('Import Only')) | ||||
| ->setTransactionType( | ->setTransactionType( | ||||
| PhabricatorRepositorySVNSubpathTransaction::TRANSACTIONTYPE) | PhabricatorRepositorySVNSubpathTransaction::TRANSACTIONTYPE) | ||||
| ->setIsCopyable(true) | ->setIsCopyable(true) | ||||
| ->setDescription(pht('Subpath to selectively import.')) | ->setDescription(pht('Subpath to selectively import.')) | ||||
| ->setConduitDescription(pht('Set the subpath to import.')) | ->setConduitDescription(pht('Set the subpath to import.')) | ||||
| ▲ Show 20 Lines • Show All 124 Lines • Show Last 20 Lines | |||||
This kinda implies that something nefarious might happen to refs that you mark as "non permanent": are they removed from disk? Sent to the shadow realm? Maybe "only these refs are considered as permanent"?