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"; }