mirror of
https://we.phorge.it/source/arcanist.git
synced 2025-02-27 14:09:10 +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() {
|
protected function getRepositoryVersion() {
|
||||||
if (!$this->repositoryVersion) {
|
if (!$this->repositoryVersion) {
|
||||||
$api = $this->getRepositoryAPI();
|
$api = $this->getRepositoryAPI();
|
||||||
$versions = array('' => $api->getSourceControlBaseRevision());
|
$commit = $api->getSourceControlBaseRevision();
|
||||||
foreach ($api->getUncommittedStatus() as $path => $mask) {
|
$versions = array('' => $commit);
|
||||||
if ($mask & ArcanistRepositoryAPI::FLAG_UNTRACKED) {
|
foreach ($api->getChangedFiles($commit) as $path => $mask) {
|
||||||
continue;
|
|
||||||
}
|
|
||||||
$versions[$path] = (Filesystem::pathExists($path)
|
$versions[$path] = (Filesystem::pathExists($path)
|
||||||
? md5_file($path)
|
? md5_file($path)
|
||||||
: '');
|
: '');
|
||||||
|
|
Loading…
Add table
Reference in a new issue