Changeset View
Changeset View
Standalone View
Standalone View
src/repository/marker/ArcanistMercurialRepositoryMarkerQuery.php
Show First 20 Lines • Show All 83 Lines • ▼ Show 20 Lines | foreach ($items as $item) { | ||||
'Call to "hg arc-ls-markers" returned marker of unknown '. | 'Call to "hg arc-ls-markers" returned marker of unknown '. | ||||
'type "%s".', | 'type "%s".', | ||||
$item['type'])); | $item['type'])); | ||||
} | } | ||||
$commit_ref = $api->newCommitRef() | $commit_ref = $api->newCommitRef() | ||||
->setCommitHash($node); | ->setCommitHash($node); | ||||
$marker_ref = id(new ArcanistMarkerRef()) | $marker_ref = (new ArcanistMarkerRef()) | ||||
->setName($item['name']) | ->setName($item['name']) | ||||
->setCommitHash($node) | ->setCommitHash($node) | ||||
->attachCommitRef($commit_ref); | ->attachCommitRef($commit_ref); | ||||
if (isset($item['description'])) { | if (isset($item['description'])) { | ||||
$description = $item['description']; | $description = $item['description']; | ||||
$commit_ref->attachMessage($description); | $commit_ref->attachMessage($description); | ||||
Show All 15 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