#!/usr/bin/env php setTagline('manually pull working copies'); $args->setSynopsis(<<parseStandardArguments(); $args->parse( array( array( 'name' => 'repositories', 'wildcard' => true, ), )); $repo_names = $args->getArg('repositories'); if (!$repo_names) { echo "Specify one or more repositories to pull, by callsign or PHID.\n"; exit(1); } $repos = PhabricatorRepository::loadAllByPHIDOrCallsign($repo_names); foreach ($repos as $repo) { $callsign = $repo->getCallsign(); echo "Pulling '{$callsign}'...\n"; PhabricatorRepositoryPullLocalDaemon::pullRepository($repo); } echo "Done.\n";