1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-11-09 16:32:39 +01:00

Fix a MarkerRef call to get the active bookmark in Mercurial

Summary: See PHI1805. This call is constructed improperly and can lead to a fatal in `arc patch` under Mercurial.

Test Plan: In Mercurial, ran a valid `arc patch` operation.

Differential Revision: https://secure.phabricator.com/D21391
This commit is contained in:
epriestley 2020-07-06 14:05:16 -07:00
parent a5480609f8
commit 79a6dfd7a9

View file

@ -890,7 +890,10 @@ final class ArcanistMercurialAPI extends ArcanistRepositoryAPI {
public function getActiveBookmark() {
$bookmark = $this->newMarkerRefQuery()
->withMarkerTypes(ArcanistMarkerRef::TYPE_BOOKMARK)
->withMarkerTypes(
array(
ArcanistMarkerRef::TYPE_BOOKMARK,
))
->withIsActive(true)
->executeOne();