mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-12-29 17:00:58 +01:00
(stable) Promote 2017 Week 6
This commit is contained in:
commit
67a47acebd
1 changed files with 8 additions and 0 deletions
|
@ -1196,6 +1196,14 @@ abstract class ArcanistWorkflow extends Phobject {
|
|||
$future = $conduit->callMethod('differential.querydiffs', $params);
|
||||
$diff = head($future->resolve());
|
||||
|
||||
if ($diff == null) {
|
||||
throw new Exception(
|
||||
phutil_console_wrap(
|
||||
pht("The diff or revision you specified is either invalid or you ".
|
||||
"don't have permission to view it."))
|
||||
);
|
||||
}
|
||||
|
||||
$changes = array();
|
||||
foreach ($diff['changes'] as $changedict) {
|
||||
$changes[] = ArcanistDiffChange::newFromDictionary($changedict);
|
||||
|
|
Loading…
Reference in a new issue