Differential D17335 Diff 41692 src/applications/diffusion/protocol/DiffusionRepositoryClusterEngine.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/protocol/DiffusionRepositoryClusterEngine.php
Show First 20 Lines • Show All 329 Lines • ▼ Show 20 Lines | try { | ||||
pht( | pht( | ||||
'Acquired write lock immediately.')); | 'Acquired write lock immediately.')); | ||||
} | } | ||||
} catch (Exception $ex) { | } catch (Exception $ex) { | ||||
throw new PhutilProxyException( | throw new PhutilProxyException( | ||||
pht( | pht( | ||||
'Failed to acquire write lock after waiting %s second(s). You '. | 'Failed to acquire write lock after waiting %s second(s). You '. | ||||
'may be able to retry later.', | 'may be able to retry later.', | ||||
new PhutilNumber($lock_wait))); | new PhutilNumber($lock_wait)), | ||||
$ex); | |||||
} | } | ||||
$versions = PhabricatorRepositoryWorkingCopyVersion::loadVersions( | $versions = PhabricatorRepositoryWorkingCopyVersion::loadVersions( | ||||
$repository_phid); | $repository_phid); | ||||
foreach ($versions as $version) { | foreach ($versions as $version) { | ||||
if (!$version->getIsWriting()) { | if (!$version->getIsWriting()) { | ||||
continue; | continue; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 418 Lines • Show Last 20 Lines |