Differential D17377 Diff 41804 src/applications/repository/engine/PhabricatorRepositoryDiscoveryEngine.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/repository/engine/PhabricatorRepositoryDiscoveryEngine.php
Show First 20 Lines • Show All 227 Lines • ▼ Show 20 Lines | do { | ||||
} | } | ||||
try { | try { | ||||
list($xml, $stderr) = $repository->execxRemoteCommand( | list($xml, $stderr) = $repository->execxRemoteCommand( | ||||
'log --xml --quiet --limit %d %s', | 'log --xml --quiet --limit %d %s', | ||||
$limit, | $limit, | ||||
$repository->getSubversionBaseURI($at_rev)); | $repository->getSubversionBaseURI($at_rev)); | ||||
} catch (CommandException $ex) { | } catch (CommandException $ex) { | ||||
$stderr = $ex->getStdErr(); | $stderr = $ex->getStderr(); | ||||
if (preg_match('/(path|File) not found/', $stderr)) { | if (preg_match('/(path|File) not found/', $stderr)) { | ||||
// We've gone all the way back through history and this path was not | // We've gone all the way back through history and this path was not | ||||
// affected by earlier commits. | // affected by earlier commits. | ||||
break; | break; | ||||
} | } | ||||
throw $ex; | throw $ex; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 686 Lines • Show Last 20 Lines |