Changeset View
Changeset View
Standalone View
Standalone View
src/applications/repository/storage/PhabricatorRepository.php
| Show First 20 Lines • Show All 1,884 Lines • ▼ Show 20 Lines | public function loadUpdateInterval($minimum = 15) { | ||||
| $smart_wait = min($smart_wait, $longest_wait); | $smart_wait = min($smart_wait, $longest_wait); | ||||
| $smart_wait = max($minimum, $smart_wait); | $smart_wait = max($minimum, $smart_wait); | ||||
| return (int)$smart_wait; | return (int)$smart_wait; | ||||
| } | } | ||||
| /** | /** | ||||
| * Time limit for cloning or copying this repository. | |||||
| * | |||||
| * This limit is used to timeout operations like `git clone` or `git fetch` | |||||
| * when doing intracluster synchronization, building working copies, etc. | |||||
| * | |||||
| * @return int Maximum number of seconds to spend copying this repository. | |||||
| */ | |||||
| public function getCopyTimeLimit() { | |||||
| return phutil_units('15 minutes in seconds'); | |||||
| } | |||||
amckinley: Presumably this will eventually become configurable on a per-repository basis, right? | |||||
Done Inline ActionsYeah, see T13216#242393 for my current thinking. epriestley: Yeah, see T13216#242393 for my current thinking. | |||||
| /** | |||||
| * Retrieve the service URI for the device hosting this repository. | * Retrieve the service URI for the device hosting this repository. | ||||
| * | * | ||||
| * See @{method:newConduitClient} for a general discussion of interacting | * See @{method:newConduitClient} for a general discussion of interacting | ||||
| * with repository services. This method provides lower-level resolution of | * with repository services. This method provides lower-level resolution of | ||||
| * services, returning raw URIs. | * services, returning raw URIs. | ||||
| * | * | ||||
| * @param PhabricatorUser Viewing user. | * @param PhabricatorUser Viewing user. | ||||
| * @param map<string, wild> Constraints on selectable services. | * @param map<string, wild> Constraints on selectable services. | ||||
| ▲ Show 20 Lines • Show All 867 Lines • Show Last 20 Lines | |||||
Presumably this will eventually become configurable on a per-repository basis, right?