Page MenuHomePhabricator

D6336.diff
No OneTemporary

D6336.diff

Index: src/workflow/ArcanistCloseRevisionWorkflow.php
===================================================================
--- src/workflow/ArcanistCloseRevisionWorkflow.php
+++ src/workflow/ArcanistCloseRevisionWorkflow.php
@@ -79,19 +79,17 @@
$revision_id = reset($revision_list);
$revision_id = $this->normalizeRevisionID($revision_id);
- $revision = null;
- try {
- $revision = $conduit->callMethodSynchronous(
- 'differential.getrevision',
- array(
- 'revision_id' => $revision_id,
- ));
- } catch (Exception $ex) {
- if (!$is_finalize) {
- throw new ArcanistUsageException(
- "Revision D{$revision_id} does not exist."
- );
- }
+ $revisions = $conduit->callMethodSynchronous(
+ 'differential.query',
+ array(
+ 'ids' => array($revision_id),
+ ));
+ $revision = head($revisions);
+
+ if (!$revision && !$is_finalize) {
+ throw new ArcanistUsageException(
+ "Revision D{$revision_id} does not exist."
+ );
}
$status_accepted = ArcanistDifferentialRevisionStatus::ACCEPTED;
Index: src/workflow/ArcanistTasksWorkflow.php
===================================================================
--- src/workflow/ArcanistTasksWorkflow.php
+++ src/workflow/ArcanistTasksWorkflow.php
@@ -253,7 +253,7 @@
$find_params['status'] = ($status ? "status-".$status : "status-open");
$tasks = $conduit->callMethodSynchronous(
- 'maniphest.find',
+ 'maniphest.query',
$find_params);
return $tasks;

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 24, 1:07 AM (20 h, 14 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6780476
Default Alt Text
D6336.diff (1 KB)

Event Timeline