Skip to content

Commit a705f33

Browse files
author
epriestley
committed
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
1 parent de46a25 commit a705f33

File tree

3 files changed

+97
-68
lines changed

3 files changed

+97
-68
lines changed

scripts/repository/discover.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@
4646
foreach ($repos as $repo) {
4747
$callsign = $repo->getCallsign();
4848
echo "Discovering '{$callsign}'...\n";
49-
PhabricatorRepositoryPullLocalDaemon::discoverRepository($repo);
49+
50+
$daemon = new PhabricatorRepositoryPullLocalDaemon(array());
51+
$daemon->setVerbose(true);
52+
$daemon->discoverRepository($repo);
5053
}
5154
echo "Done.\n";

scripts/repository/pull.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@
4646
foreach ($repos as $repo) {
4747
$callsign = $repo->getCallsign();
4848
echo "Pulling '{$callsign}'...\n";
49-
PhabricatorRepositoryPullLocalDaemon::pullRepository($repo);
49+
50+
$daemon = new PhabricatorRepositoryPullLocalDaemon(array());
51+
$daemon->setVerbose(true);
52+
$daemon->pullRepository($repo);
5053
}
5154
echo "Done.\n";

0 commit comments

Comments
 (0)