Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13264845
D8081.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D8081.diff
View Options
Index: src/workflow/ArcanistBaseWorkflow.php
===================================================================
--- src/workflow/ArcanistBaseWorkflow.php
+++ src/workflow/ArcanistBaseWorkflow.php
@@ -1650,6 +1650,7 @@
}
$project_info = $this->getProjectInfo();
+ $project_name = $this->getWorkingCopy()->getProjectID();
if ($this->getProjectInfo()) {
if (!empty($project_info['repository']['callsign'])) {
$callsign = $project_info['repository']['callsign'];
@@ -1657,19 +1658,25 @@
'callsigns' => array($callsign),
);
$reasons[] = pht(
- 'Configuration value "project.id" is set to "%s"; this project '.
+ 'Configuration value "project.name" is set to "%s"; this project '.
'is associated with the "%s" repository.',
- $this->getWorkingCopy()->getProjectID(),
+ $project_name,
$callsign);
return array($query, $reasons);
} else {
$reasons[] = pht(
- 'Configuration value "project.id" is set to "%s", but this '.
- 'project is not associated with a repository.');
+ 'Configuration value "project.name" is set to "%s", but this '.
+ 'project is not associated with a repository.',
+ $project_name);
}
+ } else if (strlen($project_name)) {
+ $reasons[] = pht(
+ 'Configuration value "project.name" is set to "%s", but that '.
+ 'project does not exist.',
+ $project_name);
} else {
$reasons[] = pht(
- 'Configuration value "project.id" is empty.');
+ 'Configuration value "project.name" is empty.');
}
$uuid = $this->getRepositoryAPI()->getRepositoryUUID();
File Metadata
Details
Attached
Mime Type
text/plain
Expires
May 28 2024, 10:43 PM (4 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6313477
Default Alt Text
D8081.diff (1 KB)
Attached To
Mode
D8081: Improve some messaging in `arc which` for autodetection of repositories
Attached
Detach File
Event Timeline
Log In to Comment