Add vebose logging to PhutilRepositoryPullDaemon
Summary: Add verbose logging. This logging is activated by setting "phd.verbose" in the config, running "phd debug", or explicitly in scripts/repository/pull.php and scripst/repository/discover.php Test Plan: >>> orbital ~/devtools/phabricator $ ./scripts/repository/discover.php GTEST Discovering 'GTEST'... <VERB> PhabricatorRepositoryPullLocalDaemon Discovering commits in repository 'GTEST'... <VERB> PhabricatorRepositoryPullLocalDaemon Examining branch '()_+abcd$100', at a37bc285a12efa7224fe19f3df54cd90fa2b897a. <VERB> PhabricatorRepositoryPullLocalDaemon Skipping, HEAD is known. <VERB> PhabricatorRepositoryPullLocalDaemon Examining branch '+abcd$100', at a37bc285a12efa7224fe19f3df54cd90fa2b897a. <VERB> PhabricatorRepositoryPullLocalDaemon Skipping, HEAD is known. <VERB> PhabricatorRepositoryPullLocalDaemon Examining branch '_+abcd$100', at a37bc285a12efa7224fe19f3df54cd90fa2b897a. <VERB> PhabricatorRepositoryPullLocalDaemon Skipping, HEAD is known. <VERB> PhabricatorRepositoryPullLocalDaemon Examining branch 'abcd$100', at a37bc285a12efa7224fe19f3df54cd90fa2b897a. <VERB> PhabricatorRepositoryPullLocalDaemon Skipping, HEAD is known. <VERB> PhabricatorRepositoryPullLocalDaemon Examining branch 'arcpatch', at 774c7737b2d560a291697126bf4513204ccf661a. <VERB> PhabricatorRepositoryPullLocalDaemon Skipping, HEAD is known. <VERB> PhabricatorRepositoryPullLocalDaemon Examining branch 'arcpatch-1', at dc97539bee07293f95990d71f4638335a2531d69. <VERB> PhabricatorRepositoryPullLocalDaemon Skipping, HEAD is known. <VERB> PhabricatorRepositoryPullLocalDaemon Examining branch 'arcpatch-2', at 1acfaec313c46dd3caa90448800181fb91b0270f. Reviewers: jungejason Reviewed By: jungejason CC: aran Differential Revision: https://secure.phabricator.com/D2843
This commit is contained in:
@@ -46,6 +46,9 @@ $repos = PhabricatorRepository::loadAllByPHIDOrCallsign($repo_names);
|
||||
foreach ($repos as $repo) {
|
||||
$callsign = $repo->getCallsign();
|
||||
echo "Discovering '{$callsign}'...\n";
|
||||
PhabricatorRepositoryPullLocalDaemon::discoverRepository($repo);
|
||||
|
||||
$daemon = new PhabricatorRepositoryPullLocalDaemon(array());
|
||||
$daemon->setVerbose(true);
|
||||
$daemon->discoverRepository($repo);
|
||||
}
|
||||
echo "Done.\n";
|
||||
|
||||
@@ -46,6 +46,9 @@ $repos = PhabricatorRepository::loadAllByPHIDOrCallsign($repo_names);
|
||||
foreach ($repos as $repo) {
|
||||
$callsign = $repo->getCallsign();
|
||||
echo "Pulling '{$callsign}'...\n";
|
||||
PhabricatorRepositoryPullLocalDaemon::pullRepository($repo);
|
||||
|
||||
$daemon = new PhabricatorRepositoryPullLocalDaemon(array());
|
||||
$daemon->setVerbose(true);
|
||||
$daemon->pullRepository($repo);
|
||||
}
|
||||
echo "Done.\n";
|
||||
|
||||
Reference in New Issue
Block a user