Differential D25002 Diff 39 src/applications/repository/management/PhabricatorRepositoryManagementCacheWorkflow.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/repository/management/PhabricatorRepositoryManagementCacheWorkflow.php
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Lines | if ($path_name === null) { | ||||
'Specify a path to look up with `%s`.', | 'Specify a path to look up with `%s`.', | ||||
'--path')); | '--path')); | ||||
} | } | ||||
$path_map = id(new DiffusionPathIDQuery(array($path_name))) | $path_map = id(new DiffusionPathIDQuery(array($path_name))) | ||||
->loadPathIDs(); | ->loadPathIDs(); | ||||
if (empty($path_map[$path_name])) { | if (empty($path_map[$path_name])) { | ||||
throw new PhutilArgumentUsageException( | throw new PhutilArgumentUsageException( | ||||
pht('Path "%s" is not known to Phabricator.', $path_name)); | pht('Path "%s" is not known to %s.', | ||||
$path_name, | |||||
PhabricatorPlatformSite::getName())); | |||||
} | } | ||||
$path_id = $path_map[$path_name]; | $path_id = $path_map[$path_name]; | ||||
$graph_cache = new PhabricatorRepositoryGraphCache(); | $graph_cache = new PhabricatorRepositoryGraphCache(); | ||||
$t_start = microtime(true); | $t_start = microtime(true); | ||||
$cache_result = $graph_cache->loadLastModifiedCommitID( | $cache_result = $graph_cache->loadLastModifiedCommitID( | ||||
$commit->getID(), | $commit->getID(), | ||||
Show All 36 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0