Differential D18390 Diff 44203 src/applications/repository/engine/PhabricatorRepositoryPullEngine.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/repository/engine/PhabricatorRepositoryPullEngine.php
| Show First 20 Lines • Show All 523 Lines • ▼ Show 20 Lines | /* -( Pulling Mercurial Working Copies )----------------------------------- */ | ||||
| * @task hg | * @task hg | ||||
| */ | */ | ||||
| private function executeMercurialUpdate() { | private function executeMercurialUpdate() { | ||||
| $repository = $this->getRepository(); | $repository = $this->getRepository(); | ||||
| $path = $repository->getLocalPath(); | $path = $repository->getLocalPath(); | ||||
| // This is a local command, but needs credentials. | // This is a local command, but needs credentials. | ||||
| $remote = $repository->getRemoteURIEnvelope(); | $remote = $repository->getRemoteURIEnvelope(); | ||||
| $future = $repository->getRemoteCommandFuture('pull -u -- %P', $remote); | $future = $repository->getRemoteCommandFuture('pull -- %P', $remote); | ||||
| $future->setCWD($path); | $future->setCWD($path); | ||||
| try { | try { | ||||
| $future->resolvex(); | $future->resolvex(); | ||||
| } catch (CommandException $ex) { | } catch (CommandException $ex) { | ||||
| $err = $ex->getError(); | $err = $ex->getError(); | ||||
| $stdout = $ex->getStdout(); | $stdout = $ex->getStdout(); | ||||
| ▲ Show 20 Lines • Show All 125 Lines • Show Last 20 Lines | |||||