mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-21 22:32:41 +01:00
Correctly recognize "no bookmarks" for Mercurial
Summary: Fixes T5086. Test Plan: remove all bookmarks and run `arc feature` Reviewers: epriestley, #blessed_reviewers Subscribers: epriestley, Korvin Maniphest Tasks: T5086 Differential Revision: https://secure.phabricator.com/D9588
This commit is contained in:
parent
8d7ee9ee38
commit
3201239e85
1 changed files with 4 additions and 0 deletions
|
@ -555,6 +555,10 @@ final class ArcanistMercurialAPI extends ArcanistRepositoryAPI {
|
|||
|
||||
public function getAllBranches() {
|
||||
list($branch_info) = $this->execxLocal('bookmarks');
|
||||
if (trim($branch_info) == 'no bookmarks set') {
|
||||
return array();
|
||||
}
|
||||
|
||||
$matches = null;
|
||||
preg_match_all(
|
||||
'/^\s*(\*?)\s*(.+)\s(\S+)$/m',
|
||||
|
|
Loading…
Reference in a new issue