Changeset View
Changeset View
Standalone View
Standalone View
src/repository/marker/ArcanistMercurialRepositoryMarkerQuery.php
Show First 20 Lines • Show All 94 Lines • ▼ Show 20 Lines | foreach ($lines as $line) { | ||||
$active_bookmark = null; | $active_bookmark = null; | ||||
} | } | ||||
} else { | } else { | ||||
$bookmarks = array(); | $bookmarks = array(); | ||||
$active_bookmark = null; | $active_bookmark = null; | ||||
} | } | ||||
$message = $fields[4]; | $message = $fields[4]; | ||||
$message_lines = phutil_split_lines($message, false); | |||||
$commit_ref = $api->newCommitRef() | $commit_ref = $api->newCommitRef() | ||||
->setCommitHash($node) | ->setCommitHash($node) | ||||
->attachMessage($message); | ->attachMessage($message); | ||||
$template = id(new ArcanistMarkerRef()) | $template = id(new ArcanistMarkerRef()) | ||||
->setCommitHash($node) | ->setCommitHash($node) | ||||
->setSummary(head($message_lines)) | |||||
->attachCommitRef($commit_ref); | ->attachCommitRef($commit_ref); | ||||
if ($is_bookmarks) { | if ($is_bookmarks) { | ||||
foreach ($bookmarks as $bookmark) { | foreach ($bookmarks as $bookmark) { | ||||
$is_active = ($bookmark === $active_bookmark); | $is_active = ($bookmark === $active_bookmark); | ||||
$markers[] = id(clone $template) | $markers[] = id(clone $template) | ||||
->setMarkerType(ArcanistMarkerRef::TYPE_BOOKMARK) | ->setMarkerType(ArcanistMarkerRef::TYPE_BOOKMARK) | ||||
Show All 30 Lines |