mirror of
https://we.phorge.it/source/phorge.git
synced 2025-02-08 12:58:31 +01:00
[svn1.7] Fix thrown exception when browsing diffusion with added directories
Summary: svn cat returns a non-zero exit status when trying to cat a directory. Test Plan: Browsed diffusion in my sandbox Reviewers: epriestley, jungejason Reviewed By: epriestley CC: aran, epriestley Differential Revision: https://secure.phabricator.com/D1882
This commit is contained in:
parent
1cca22f3fd
commit
7c9057854b
1 changed files with 8 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright 2011 Facebook, Inc.
|
* Copyright 2012 Facebook, Inc.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -99,7 +99,13 @@ final class DiffusionSvnDiffQuery extends DiffusionDiffQuery {
|
||||||
$futures = array_filter($futures);
|
$futures = array_filter($futures);
|
||||||
|
|
||||||
foreach (Futures($futures) as $key => $future) {
|
foreach (Futures($futures) as $key => $future) {
|
||||||
list($stdout) = $future->resolvex();
|
try {
|
||||||
|
list($stdout) = $future->resolvex();
|
||||||
|
} catch (CommandException $e) {
|
||||||
|
if ($path->getFileType() != DifferentialChangeType::FILE_DIRECTORY) {
|
||||||
|
throw $e;
|
||||||
|
}
|
||||||
|
}
|
||||||
$futures[$key] = $stdout;
|
$futures[$key] = $stdout;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue