Changeset View
Changeset View
Standalone View
Standalone View
src/repository/api/ArcanistMercurialAPI.php
| Show First 20 Lines • Show All 884 Lines • ▼ Show 20 Lines | if (!$err) { | ||||
| $info['base_revision'] = $base_path.'@'.$revision; | $info['base_revision'] = $base_path.'@'.$revision; | ||||
| } | } | ||||
| } | } | ||||
| return $info; | return $info; | ||||
| } | } | ||||
| public function getActiveBookmark() { | public function getActiveBookmark() { | ||||
| $bookmark = $this->newMarkerRefQuery() | $bookmark = $this->newMarkerRefQuery() | ||||
| ->withMarkerTypes(ArcanistMarkerRef::TYPE_BOOKMARK) | ->withMarkerTypes( | ||||
| array( | |||||
| ArcanistMarkerRef::TYPE_BOOKMARK, | |||||
| )) | |||||
| ->withIsActive(true) | ->withIsActive(true) | ||||
| ->executeOne(); | ->executeOne(); | ||||
| if (!$bookmark) { | if (!$bookmark) { | ||||
| return null; | return null; | ||||
| } | } | ||||
| return $bookmark->getName(); | return $bookmark->getName(); | ||||
| ▲ Show 20 Lines • Show All 157 Lines • Show Last 20 Lines | |||||