1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-11-22 14:52:40 +01:00

Make "arc export" work from a local git repo

Summary:

Test Plan:

Reviewers:

CC:
This commit is contained in:
epriestley 2011-01-29 12:45:37 -08:00
parent 9affcb0db2
commit 100c55cf45

View file

@ -167,11 +167,19 @@ EOTEXT
$repository_api = $this->getRepositoryAPI(); $repository_api = $this->getRepositoryAPI();
$parser = new ArcanistDiffParser(); $parser = new ArcanistDiffParser();
// TODO: git support, paths support if ($repository_api instanceof ArcanistGitAPI) {
$this->parseGitRelativeCommit(
$repository_api,
$this->getArgument('paths'));
$diff = $repository_api->getFullGitDiff();
$changes = $parser->parseDiff($diff);
} else {
// TODO: paths support
$paths = $repository_api->getWorkingCopyStatus(); $paths = $repository_api->getWorkingCopyStatus();
$changes = $parser->parseSubversionDiff( $changes = $parser->parseSubversionDiff(
$repository_api, $repository_api,
$paths); $paths);
}
$bundle = ArcanistBundle::newFromChanges($changes); $bundle = ArcanistBundle::newFromChanges($changes);
break; break;