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
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 )---------------------------------------- */
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;