Page MenuHomePhabricator

D8690.id20603.diff
No OneTemporary

D8690.id20603.diff

diff --git a/src/workflow/ArcanistWhichWorkflow.php b/src/workflow/ArcanistWhichWorkflow.php
--- a/src/workflow/ArcanistWhichWorkflow.php
+++ b/src/workflow/ArcanistWhichWorkflow.php
@@ -43,9 +43,6 @@
public function getArguments() {
return array(
- 'any-author' => array(
- 'help' => "Show revisions by any author, not just you.",
- ),
'any-status' => array(
'help' => "Show committed and abandoned revisions.",
),
@@ -138,13 +135,10 @@
echo $commits."\n\n\n";
}
- $any_author = $this->getArgument('any-author');
$any_status = $this->getArgument('any-status');
$query = array(
- 'authors' => $any_author
- ? null
- : array($this->getUserPHID()),
+ 'authors' => null,
'status' => $any_status
? 'status-any'
: 'status-open',
@@ -170,7 +164,14 @@
"'arc diff{$arg}'.\n\n"));
} else {
foreach ($revisions as $revision) {
- echo ' D'.$revision['id'].' '.$revision['title']."\n";
+ $conduit = $this->getConduit();
+ $users = $conduit->callMethodSynchronous('user.query',
+ array('phids' =>
+ array($revision['authorPHID']
+ )));
+ $author = $users[0]['userName'];
+ echo ' D'.$revision['id'].' '.$revision['title'];
+ echo ' (owned by ' . $author . ")\n";
echo ' Reason: '.$revision['why']."\n";
echo "\n";
}

File Metadata

Mime Type
text/plain
Expires
Sun, Aug 3, 9:34 PM (1 w, 6 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
8889295
Default Alt Text
D8690.id20603.diff (1 KB)

Event Timeline