mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-27 16:00:59 +01:00
bd29784a32
Summary: Ref T4068. Adds a command to list all commits in an "importing" status. This will allow users to use `reparse.php` to diagnose and repair issues. Test Plan: - Ran `bin/repository importing P`, etc. - Used `reparse.php` to reparse some commit stages and saw status update correctly. - Ran on a repo with no importing commits. - Ran with `... --simple | xargs`, which saves us having to put an `awk` or something in there for users. Reviewers: btrahan Reviewed By: btrahan CC: aran Maniphest Tasks: T4068 Differential Revision: https://secure.phabricator.com/D7515
28 lines
858 B
PHP
Executable file
28 lines
858 B
PHP
Executable file
#!/usr/bin/env php
|
|
<?php
|
|
|
|
$root = dirname(dirname(dirname(__FILE__)));
|
|
require_once $root.'/scripts/__init_script__.php';
|
|
|
|
$args = new PhutilArgumentParser($argv);
|
|
$args->setTagline('manage repositories');
|
|
$args->setSynopsis(<<<EOSYNOPSIS
|
|
**repository** __command__ [__options__]
|
|
Manage and debug Phabricator repository configuration, tracking,
|
|
discovery and import.
|
|
|
|
EOSYNOPSIS
|
|
);
|
|
$args->parseStandardArguments();
|
|
|
|
$workflows = array(
|
|
new PhabricatorRepositoryManagementPullWorkflow(),
|
|
new PhabricatorRepositoryManagementDiscoverWorkflow(),
|
|
new PhabricatorRepositoryManagementListWorkflow(),
|
|
new PhabricatorRepositoryManagementDeleteWorkflow(),
|
|
new PhabricatorRepositoryManagementMarkImportedWorkflow(),
|
|
new PhabricatorRepositoryManagementImportingWorkflow(),
|
|
new PhutilHelpArgumentWorkflow(),
|
|
);
|
|
|
|
$args->parseWorkflows($workflows);
|