mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-29 18:22:41 +01:00
Support Mercurial commands on Windows
Test Plan: Grepped Hg repo. Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D5774
This commit is contained in:
parent
76ec31cebf
commit
1c507f14af
1 changed files with 2 additions and 1 deletions
|
@ -252,7 +252,8 @@ final class PhabricatorRepository extends PhabricatorRepositoryDAO
|
|||
array_unshift($args, $this->getLocalPath());
|
||||
break;
|
||||
case PhabricatorRepositoryType::REPOSITORY_TYPE_MERCURIAL:
|
||||
$pattern = "(cd %s && HGPLAIN=1 hg {$pattern})";
|
||||
$hgplain = (phutil_is_windows() ? "set HGPLAIN=1 &&" : "HGPLAIN=1");
|
||||
$pattern = "(cd %s && {$hgplain} hg {$pattern})";
|
||||
array_unshift($args, $this->getLocalPath());
|
||||
break;
|
||||
default:
|
||||
|
|
Loading…
Reference in a new issue