1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-12-23 05:50:54 +01:00

Save files with path to phutil cache

Test Plan:
  $ arc liberate
  $ mv a.php b.php
  $ arc liberate

Previously, it didn't update the map.

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin

Differential Revision: https://secure.phabricator.com/D2818
This commit is contained in:
vrana 2012-06-21 11:48:23 -07:00
parent 887c3484a7
commit 636bcef5ca

View file

@ -37,7 +37,7 @@ final class PhutilLibraryMapBuilder {
const LIBRARY_MAP_VERSION = 2;
const SYMBOL_CACHE_VERSION_KEY = '__symbol_cache_version__';
const SYMBOL_CACHE_VERSION = 3;
const SYMBOL_CACHE_VERSION = 4;
/* -( Mapping libphutil Libraries )---------------------------------------- */
@ -420,7 +420,9 @@ final class PhutilLibraryMapBuilder {
continue;
}
$map[$file] = $hash;
// We include also filename in the hash to handle cases when the file is
// moved without modifying its content.
$map[$file] = md5($hash.$file);
}
return $map;