Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/editor/DiffusionRepositoryEditEngine.php
| Show First 20 Lines • Show All 247 Lines • ▼ Show 20 Lines | if ($object->isGit()) { | ||||
| 'installed on this server does not support '. | 'installed on this server does not support '. | ||||
| '"--batch-check=<format>", a feature required to enforce filesize '. | '"--batch-check=<format>", a feature required to enforce filesize '. | ||||
| 'limits. Upgrade to "git" %s or newer to use this feature.', | 'limits. Upgrade to "git" %s or newer to use this feature.', | ||||
| $git_version, | $git_version, | ||||
| $filesize_version); | $filesize_version); | ||||
| } | } | ||||
| } | } | ||||
| $track_instructions = pht( | |||||
| 'WARNING: The "Track Only" feature is deprecated. Use "Fetch Refs" '. | |||||
| 'and "Permanent Refs" instead. This feature will be removed in a '. | |||||
| 'future version of Phabricator.'); | |||||
| return array( | return array( | ||||
| id(new PhabricatorSelectEditField()) | id(new PhabricatorSelectEditField()) | ||||
| ->setKey('vcs') | ->setKey('vcs') | ||||
| ->setLabel(pht('Version Control System')) | ->setLabel(pht('Version Control System')) | ||||
| ->setTransactionType( | ->setTransactionType( | ||||
| PhabricatorRepositoryVCSTransaction::TRANSACTIONTYPE) | PhabricatorRepositoryVCSTransaction::TRANSACTIONTYPE) | ||||
| ->setIsFormField(false) | ->setIsFormField(false) | ||||
| ->setIsCopyable(true) | ->setIsCopyable(true) | ||||
| ▲ Show 20 Lines • Show All 109 Lines • ▼ Show 20 Lines | return array( | ||||
| PhabricatorRepositoryFetchRefsTransaction::TRANSACTIONTYPE) | PhabricatorRepositoryFetchRefsTransaction::TRANSACTIONTYPE) | ||||
| ->setIsCopyable(true) | ->setIsCopyable(true) | ||||
| ->setDescription(pht('Fetch only these refs.')) | ->setDescription(pht('Fetch only these refs.')) | ||||
| ->setConduitDescription(pht('Set the fetched refs.')) | ->setConduitDescription(pht('Set the fetched refs.')) | ||||
| ->setConduitTypeDescription(pht('New fetched refs.')) | ->setConduitTypeDescription(pht('New fetched refs.')) | ||||
| ->setValue($fetch_value), | ->setValue($fetch_value), | ||||
| id(new PhabricatorTextAreaEditField()) | id(new PhabricatorTextAreaEditField()) | ||||
| ->setIsStringList(true) | ->setIsStringList(true) | ||||
| ->setKey('trackOnly') | |||||
| ->setLabel(pht('Track Only')) | |||||
| ->setTransactionType( | |||||
| PhabricatorRepositoryTrackOnlyTransaction::TRANSACTIONTYPE) | |||||
| ->setIsCopyable(true) | |||||
| ->setDescription(pht('Track only these branches.')) | |||||
| ->setConduitDescription(pht('Set the tracked branches.')) | |||||
| ->setConduitTypeDescription(pht('New tracked branches.')) | |||||
| ->setValue($track_value), | |||||
| id(new PhabricatorTextAreaEditField()) | |||||
| ->setIsStringList(true) | |||||
| ->setKey('permanentRefs') | ->setKey('permanentRefs') | ||||
| ->setLabel(pht('Permanent Refs')) | ->setLabel(pht('Permanent Refs')) | ||||
| ->setTransactionType( | ->setTransactionType( | ||||
| PhabricatorRepositoryPermanentRefsTransaction::TRANSACTIONTYPE) | PhabricatorRepositoryPermanentRefsTransaction::TRANSACTIONTYPE) | ||||
| ->setIsCopyable(true) | ->setIsCopyable(true) | ||||
| ->setDescription(pht('Only these refs are considered permanent.')) | ->setDescription(pht('Only these refs are considered permanent.')) | ||||
| ->setConduitDescription(pht('Set the permanent refs.')) | ->setConduitDescription(pht('Set the permanent refs.')) | ||||
| ->setConduitTypeDescription(pht('New permanent ref rules.')) | ->setConduitTypeDescription(pht('New permanent ref rules.')) | ||||
| ->setValue($permanent_value), | ->setValue($permanent_value), | ||||
| id(new PhabricatorTextAreaEditField()) | |||||
| ->setIsStringList(true) | |||||
| ->setKey('trackOnly') | |||||
| ->setLabel(pht('Track Only')) | |||||
| ->setTransactionType( | |||||
| PhabricatorRepositoryTrackOnlyTransaction::TRANSACTIONTYPE) | |||||
| ->setIsCopyable(true) | |||||
| ->setControlInstructions($track_instructions) | |||||
| ->setDescription(pht('Track only these branches.')) | |||||
| ->setConduitDescription(pht('Set the tracked branches.')) | |||||
| ->setConduitTypeDescription(pht('New tracked branches.')) | |||||
| ->setValue($track_value), | |||||
| 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 111 Lines • Show Last 20 Lines | |||||