Differential D17377 Diff 41804 src/applications/repository/engine/PhabricatorRepositoryMirrorEngine.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/repository/engine/PhabricatorRepositoryMirrorEngine.php
Show First 20 Lines • Show All 102 Lines • ▼ Show 20 Lines | $future = $mirror_uri->newCommandEngine() | ||||
->setArgv($argv) | ->setArgv($argv) | ||||
->newFuture(); | ->newFuture(); | ||||
try { | try { | ||||
$future | $future | ||||
->setCWD($repository->getLocalPath()) | ->setCWD($repository->getLocalPath()) | ||||
->resolvex(); | ->resolvex(); | ||||
} catch (CommandException $ex) { | } catch (CommandException $ex) { | ||||
if (preg_match('/no changes found/', $ex->getStdOut())) { | if (preg_match('/no changes found/', $ex->getStdout())) { | ||||
// mercurial says nothing changed, but that's good | // mercurial says nothing changed, but that's good | ||||
} else { | } else { | ||||
throw $ex; | throw $ex; | ||||
} | } | ||||
} | } | ||||
} | } | ||||
} | } |