Changeset View
Changeset View
Standalone View
Standalone View
src/repository/marker/ArcanistRepositoryMarkerQuery.php
Show First 20 Lines • Show All 52 Lines • ▼ Show 20 Lines | if ($remotes !== null) { | ||||
$markers = $this->newLocalRefMarkers(); | $markers = $this->newLocalRefMarkers(); | ||||
foreach ($markers as $marker) { | foreach ($markers as $marker) { | ||||
$marker->attachRemoteRef(null); | $marker->attachRemoteRef(null); | ||||
} | } | ||||
} | } | ||||
$api = $this->getRepositoryAPI(); | $api = $this->getRepositoryAPI(); | ||||
foreach ($markers as $marker) { | foreach ($markers as $marker) { | ||||
$state_ref = id(new ArcanistWorkingCopyStateRef()) | $state_ref = (new ArcanistWorkingCopyStateRef()) | ||||
->setCommitRef($marker->getCommitRef()); | ->setCommitRef($marker->getCommitRef()); | ||||
$marker->attachWorkingCopyStateRef($state_ref); | $marker->attachWorkingCopyStateRef($state_ref); | ||||
$hash = $marker->getCommitHash(); | $hash = $marker->getCommitHash(); | ||||
if ($hash !== null) { | if ($hash !== null) { | ||||
$hash = $api->getDisplayHash($hash); | $hash = $api->getDisplayHash($hash); | ||||
$marker->setDisplayHash($hash); | $marker->setDisplayHash($hash); | ||||
▲ Show 20 Lines • Show All 54 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