Changeset View
Changeset View
Standalone View
Standalone View
src/repository/api/ArcanistMercurialAPI.php
Show First 20 Lines • Show All 240 Lines • ▼ Show 20 Lines | if ($this->localCommitInfo === null) { | ||||
'summary' => head(explode("\n", $desc)), | 'summary' => head(explode("\n", $desc)), | ||||
'message' => $desc, | 'message' => $desc, | ||||
'authorEmail' => $author_email, | 'authorEmail' => $author_email, | ||||
); | ); | ||||
$last_node = $node; | $last_node = $node; | ||||
} | } | ||||
$futures = id(new FutureIterator($futures)) | $futures = (new FutureIterator($futures)) | ||||
->limit(4); | ->limit(4); | ||||
foreach ($futures as $node => $future) { | foreach ($futures as $node => $future) { | ||||
list($parents) = $future->resolvex(); | list($parents) = $future->resolvex(); | ||||
$parents = array_filter(explode("\n", $parents)); | $parents = array_filter(explode("\n", $parents)); | ||||
$commits[$node]['parents'] = $parents; | $commits[$node]['parents'] = $parents; | ||||
} | } | ||||
// Put commits in newest-first order, to be consistent with Git and the | // Put commits in newest-first order, to be consistent with Git and the | ||||
▲ Show 20 Lines • Show All 771 Lines • ▼ Show 20 Lines | protected function newLandEngine() { | ||||
return new ArcanistMercurialLandEngine(); | return new ArcanistMercurialLandEngine(); | ||||
} | } | ||||
protected function newWorkEngine() { | protected function newWorkEngine() { | ||||
return new ArcanistMercurialWorkEngine(); | return new ArcanistMercurialWorkEngine(); | ||||
} | } | ||||
public function newLocalState() { | public function newLocalState() { | ||||
return id(new ArcanistMercurialLocalState()) | return (new ArcanistMercurialLocalState()) | ||||
->setRepositoryAPI($this); | ->setRepositoryAPI($this); | ||||
} | } | ||||
public function willTestMercurialFeature($feature) { | public function willTestMercurialFeature($feature) { | ||||
$this->executeMercurialFeatureTest($feature, false); | $this->executeMercurialFeatureTest($feature, false); | ||||
return $this; | return $this; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 219 Lines • Show Last 20 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0