Differential D17100 Diff 41135 src/applications/repository/daemon/PhabricatorRepositoryPullLocalDaemon.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/repository/daemon/PhabricatorRepositoryPullLocalDaemon.php
Show First 20 Lines • Show All 266 Lines • ▼ Show 20 Lines | private function buildUpdateFuture( | ||||
if ($repository->isImporting()) { | if ($repository->isImporting()) { | ||||
$timeout = phutil_units('4 hours in seconds'); | $timeout = phutil_units('4 hours in seconds'); | ||||
} else { | } else { | ||||
$timeout = phutil_units('15 minutes in seconds'); | $timeout = phutil_units('15 minutes in seconds'); | ||||
} | } | ||||
$future->setTimeout($timeout); | $future->setTimeout($timeout); | ||||
// The default TERM inherited by this process is "unknown", which causes PHP | |||||
// to produce a warning upon startup. Override it to squash this output to | |||||
// STDERR. | |||||
$future->updateEnv('TERM', 'dumb'); | |||||
return $future; | return $future; | ||||
} | } | ||||
/** | /** | ||||
* Check for repositories that should be updated immediately. | * Check for repositories that should be updated immediately. | ||||
* | * | ||||
* With the `$consume` flag, an internal cursor will also be incremented so | * With the `$consume` flag, an internal cursor will also be incremented so | ||||
▲ Show 20 Lines • Show All 227 Lines • Show Last 20 Lines |