3 final class PhabricatorRepositoryManagementRefsWorkflow
4 extends PhabricatorRepositoryManagementWorkflow
{
6 protected function didConstruct() {
9 ->setExamples('**refs** [__options__] __repository__ ...')
10 ->setSynopsis(pht('Update refs in __repository__.'))
15 'help' => pht('Show additional debugging information.'),
20 'Publish commits currently reachable from any permanent ref, '.
21 'ignoring the cached ref state.'),
30 public function execute(PhutilArgumentParser
$args) {
31 $repos = $this->loadLocalRepositories($args, 'repos');
34 throw new PhutilArgumentUsageException(
36 'Specify one or more repositories to update refs for.'));
39 $console = PhutilConsole
::getConsole();
40 foreach ($repos as $repo) {
44 'Updating refs in "%s"...',
45 $repo->getDisplayName()));
47 $engine = id(new PhabricatorRepositoryRefEngine())
48 ->setRepository($repo)
49 ->setVerbose($args->getArg('verbose'))
50 ->setRebuild($args->getArg('rebuild'))
54 $console->writeOut("%s\n", pht('Done.'));