1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-09-19 16:38:51 +02:00

(stable) 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 8795282286
commit e2ac83ce57

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();