mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-12-26 23:40:56 +01:00
Use all changed files since base revision in repository cache key
Test Plan: Added debug output for repository version, linted, committed, linted again, saw the same version, changed file, saw different version. Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D4731
This commit is contained in:
parent
51f32bdde7
commit
9746d2b2a1
1 changed files with 3 additions and 5 deletions
|
@ -1547,11 +1547,9 @@ abstract class ArcanistBaseWorkflow extends Phobject {
|
|||
protected function getRepositoryVersion() {
|
||||
if (!$this->repositoryVersion) {
|
||||
$api = $this->getRepositoryAPI();
|
||||
$versions = array('' => $api->getSourceControlBaseRevision());
|
||||
foreach ($api->getUncommittedStatus() as $path => $mask) {
|
||||
if ($mask & ArcanistRepositoryAPI::FLAG_UNTRACKED) {
|
||||
continue;
|
||||
}
|
||||
$commit = $api->getSourceControlBaseRevision();
|
||||
$versions = array('' => $commit);
|
||||
foreach ($api->getChangedFiles($commit) as $path => $mask) {
|
||||
$versions[$path] = (Filesystem::pathExists($path)
|
||||
? md5_file($path)
|
||||
: '');
|
||||
|
|
Loading…
Reference in a new issue