mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-22 13:30:55 +01:00
Minor improvements to PhabricatorRepositoryGitCommitDiscoveryDaemon.php
This commit is contained in:
parent
f224c56b91
commit
71605e1c2d
1 changed files with 2 additions and 1 deletions
|
@ -71,7 +71,6 @@ class PhabricatorRepositoryGitCommitDiscoveryDaemon
|
||||||
$parents = array_filter(explode(' ', trim($parents)));
|
$parents = array_filter(explode(' ', trim($parents)));
|
||||||
foreach ($parents as $parent) {
|
foreach ($parents as $parent) {
|
||||||
if (!$this->isKnownCommit($parent)) {
|
if (!$this->isKnownCommit($parent)) {
|
||||||
echo "{$target} has parent {$parent}\n";
|
|
||||||
$discover[] = $parent;
|
$discover[] = $parent;
|
||||||
$insert[] = $parent;
|
$insert[] = $parent;
|
||||||
}
|
}
|
||||||
|
@ -79,6 +78,7 @@ class PhabricatorRepositoryGitCommitDiscoveryDaemon
|
||||||
if (empty($discover)) {
|
if (empty($discover)) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
$this->stillWorking();
|
||||||
}
|
}
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
|
@ -110,6 +110,7 @@ class PhabricatorRepositoryGitCommitDiscoveryDaemon
|
||||||
if (empty($insert)) {
|
if (empty($insert)) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
$this->stillWorking();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue