mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-22 06:42:41 +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:
parent
a5480609f8
commit
79a6dfd7a9
1 changed files with 4 additions and 1 deletions
|
@ -890,7 +890,10 @@ final class ArcanistMercurialAPI extends ArcanistRepositoryAPI {
|
||||||
|
|
||||||
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();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue