Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13177350
D20433.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
4 KB
Referenced Files
None
Subscribers
None
D20433.diff
View Options
diff --git a/src/applications/diffusion/editor/DiffusionRepositoryEditEngine.php b/src/applications/diffusion/editor/DiffusionRepositoryEditEngine.php
--- a/src/applications/diffusion/editor/DiffusionRepositoryEditEngine.php
+++ b/src/applications/diffusion/editor/DiffusionRepositoryEditEngine.php
@@ -253,6 +253,11 @@
}
}
+ $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(
id(new PhabricatorSelectEditField())
->setKey('vcs')
@@ -376,17 +381,6 @@
->setConduitDescription(pht('Set the fetched refs.'))
->setConduitTypeDescription(pht('New fetched refs.'))
->setValue($fetch_value),
- id(new PhabricatorTextAreaEditField())
- ->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')
@@ -398,6 +392,18 @@
->setConduitDescription(pht('Set the permanent refs.'))
->setConduitTypeDescription(pht('New permanent ref rules.'))
->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())
->setKey('importOnly')
->setLabel(pht('Import Only'))
diff --git a/src/applications/diffusion/management/DiffusionRepositoryBranchesManagementPanel.php b/src/applications/diffusion/management/DiffusionRepositoryBranchesManagementPanel.php
--- a/src/applications/diffusion/management/DiffusionRepositoryBranchesManagementPanel.php
+++ b/src/applications/diffusion/management/DiffusionRepositoryBranchesManagementPanel.php
@@ -37,8 +37,8 @@
return array(
'defaultBranch',
'fetchRefs',
- 'trackOnly',
'permanentRefs',
+ 'trackOnly',
);
}
@@ -90,12 +90,10 @@
}
$track_only_rules = $repository->getTrackOnlyRules();
- $track_only_rules = implode(', ', $track_only_rules);
- $track_only = nonempty(
- $track_only_rules,
- phutil_tag('em', array(), pht('Track All Branches')));
- $view->addProperty(pht('Track Only'), $track_only);
-
+ if ($track_only_rules) {
+ $track_only_rules = implode(', ', $track_only_rules);
+ $view->addProperty(pht('Track Only'), $track_only_rules);
+ }
$publishing_disabled = $repository->isPublishingDisabled();
if ($publishing_disabled) {
@@ -134,7 +132,6 @@
$rows = array();
foreach ($branches as $branch) {
$branch_name = $branch->getShortName();
- $tracking = $repository->shouldTrackBranch($branch_name);
$permanent = $repository->shouldAutocloseBranch($branch_name);
$default = $repository->getDefaultBranch();
@@ -166,7 +163,6 @@
$icon,
$branch_name,
$status,
- $tracking ? pht('Tracking') : pht('Off'),
$permanent_status,
);
}
@@ -176,7 +172,6 @@
'',
pht('Branch'),
pht('Status'),
- pht('Track'),
pht('Permanent'),
));
$branch_table->setColumnClasses(
@@ -184,7 +179,6 @@
'',
'pri',
'narrow',
- 'narrow',
'wide',
));
$branch_table->setColumnVisibility(
@@ -193,7 +187,6 @@
true,
$can_close_branches,
true,
- true,
));
$box = $this->newBox(pht('Branch Status'), $branch_table);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, May 9, 7:38 PM (4 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6275764
Default Alt Text
D20433.diff (4 KB)
Attached To
Mode
D20433: Deprecate "Track Only" in the Diffusion UI
Attached
Detach File
Event Timeline
Log In to Comment