Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14837341
D21345.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
3 KB
Referenced Files
None
Subscribers
None
D21345.id.diff
View Options
diff --git a/src/land/engine/ArcanistLandEngine.php b/src/land/engine/ArcanistLandEngine.php
--- a/src/land/engine/ArcanistLandEngine.php
+++ b/src/land/engine/ArcanistLandEngine.php
@@ -333,13 +333,13 @@
}
$planned = array();
- $closed = array();
+ $published = array();
$not_accepted = array();
foreach ($revision_refs as $revision_ref) {
if ($revision_ref->isStatusChangesPlanned()) {
$planned[] = $revision_ref;
- } else if ($revision_ref->isStatusClosed()) {
- $closed[] = $revision_ref;
+ } else if ($revision_ref->isStatusPublished()) {
+ $published[] = $revision_ref;
} else if (!$revision_ref->isStatusAccepted()) {
$not_accepted[] = $revision_ref;
}
@@ -389,28 +389,28 @@
// See PHI1727. Previously, this prompt was bundled with the generic
// "not accepted" prompt, but at least one user found it confusing.
- if ($closed) {
- $example_ref = head($closed);
+ if ($published) {
+ $example_ref = head($published);
echo tsprintf(
"\n%!\n%W\n\n",
- pht('%s REVISION(S) ARE ALREADY CLOSED', phutil_count($closed)),
+ pht('%s REVISION(S) ARE ALREADY PUBLISHED', phutil_count($published)),
pht(
'You are landing %s revision(s) which are already in the state '.
'"%s", indicating that they have previously landed:',
- phutil_count($closed),
+ phutil_count($published),
$example_ref->getStatusDisplayName()));
- foreach ($closed as $revision_ref) {
+ foreach ($published as $revision_ref) {
echo tsprintf('%s', $revision_ref->newDisplayRef());
}
$query = pht(
- 'Land %s revision(s) that are already closed?',
- phutil_count($closed));
+ 'Land %s revision(s) that are already published?',
+ phutil_count($published));
$this->getWorkflow()
- ->getPrompt('arc.land.closed')
+ ->getPrompt('arc.land.published')
->setQuery($query)
->execute();
}
diff --git a/src/ref/revision/ArcanistRevisionRef.php b/src/ref/revision/ArcanistRevisionRef.php
--- a/src/ref/revision/ArcanistRevisionRef.php
+++ b/src/ref/revision/ArcanistRevisionRef.php
@@ -86,9 +86,9 @@
return ($status === 'abandoned');
}
- public function isStatusClosed() {
+ public function isStatusPublished() {
$status = $this->getStatus();
- return ($status === 'closed');
+ return ($status === 'published');
}
public function isStatusAccepted() {
diff --git a/src/workflow/ArcanistLandWorkflow.php b/src/workflow/ArcanistLandWorkflow.php
--- a/src/workflow/ArcanistLandWorkflow.php
+++ b/src/workflow/ArcanistLandWorkflow.php
@@ -259,10 +259,10 @@
->setDescription(
pht(
'Confirms that revisions with changes planned should land.')),
- $this->newPrompt('arc.land.closed')
+ $this->newPrompt('arc.land.published')
->setDescription(
pht(
- 'Confirms that revisions that are already closed should land.')),
+ 'Confirms that revisions that are already published should land.')),
$this->newPrompt('arc.land.not-accepted')
->setDescription(
pht(
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Feb 1, 8:28 AM (34 m, 16 s)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7081276
Default Alt Text
D21345.id.diff (3 KB)
Attached To
Mode
D21345: Realign "arc land" closed/published warning around more modern language
Attached
Detach File
Event Timeline
Log In to Comment