mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-22 06:42:41 +01:00
Make "arc export" work from a local git repo
Summary: Test Plan: Reviewers: CC:
This commit is contained in:
parent
9affcb0db2
commit
100c55cf45
1 changed files with 14 additions and 6 deletions
|
@ -166,12 +166,20 @@ EOTEXT
|
||||||
case self::SOURCE_LOCAL:
|
case self::SOURCE_LOCAL:
|
||||||
$repository_api = $this->getRepositoryAPI();
|
$repository_api = $this->getRepositoryAPI();
|
||||||
$parser = new ArcanistDiffParser();
|
$parser = new ArcanistDiffParser();
|
||||||
|
|
||||||
// TODO: git support, paths support
|
if ($repository_api instanceof ArcanistGitAPI) {
|
||||||
$paths = $repository_api->getWorkingCopyStatus();
|
$this->parseGitRelativeCommit(
|
||||||
$changes = $parser->parseSubversionDiff(
|
$repository_api,
|
||||||
$repository_api,
|
$this->getArgument('paths'));
|
||||||
$paths);
|
$diff = $repository_api->getFullGitDiff();
|
||||||
|
$changes = $parser->parseDiff($diff);
|
||||||
|
} else {
|
||||||
|
// TODO: paths support
|
||||||
|
$paths = $repository_api->getWorkingCopyStatus();
|
||||||
|
$changes = $parser->parseSubversionDiff(
|
||||||
|
$repository_api,
|
||||||
|
$paths);
|
||||||
|
}
|
||||||
|
|
||||||
$bundle = ArcanistBundle::newFromChanges($changes);
|
$bundle = ArcanistBundle::newFromChanges($changes);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue