Differential D11680 Diff 28113 src/applications/repository/management/PhabricatorRepositoryManagementLookupUsersWorkflow.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/repository/management/PhabricatorRepositoryManagementLookupUsersWorkflow.php
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | foreach ($commits as $commit) { | ||||
'diffusion.querycommits', | 'diffusion.querycommits', | ||||
array( | array( | ||||
'phids' => array($commit->getPHID()), | 'phids' => array($commit->getPHID()), | ||||
'bypassCache' => true, | 'bypassCache' => true, | ||||
)); | )); | ||||
if (empty($refs_raw['data'])) { | if (empty($refs_raw['data'])) { | ||||
throw new Exception( | throw new Exception( | ||||
pht('Unable to retrieve details for commit "%s"!')); | pht( | ||||
'Unable to retrieve details for commit "%s"!', | |||||
$commit->getPHID())); | |||||
} | } | ||||
$ref = DiffusionCommitRef::newFromConduitResult(head($refs_raw['data'])); | $ref = DiffusionCommitRef::newFromConduitResult(head($refs_raw['data'])); | ||||
$author = $ref->getAuthor(); | $author = $ref->getAuthor(); | ||||
$console->writeOut( | $console->writeOut( | ||||
"%s\n", | "%s\n", | ||||
pht('Raw author string: %s', coalesce($author, 'null'))); | pht('Raw author string: %s', coalesce($author, 'null'))); | ||||
▲ Show 20 Lines • Show All 53 Lines • Show Last 20 Lines |